Linux File Compression Basics

Prerequisites : Basic familiarity with using the Linux terminal. Access to a Linux-based operating system. Step 1: Compression with gzip: gzip is a popular compression tool on Linux. To compress a file using gzip, use the following command: gzip filename Replace filename with the name of the file you want to compress. This will create a compressed file with a .gz extension. Step 2: Compression with zip: zip is another common compression tool that can create zip archives....

February 10, 2024 · 2 min · 234 words · Saman Wijesinghe

How to Rename Multiple Files in Linux Terminal

Method 1: Using mv and Wildcards Step 1: Open the Terminal Open your terminal application. You can do this by pressing Ctrl + Alt + T or searching for “Terminal” in the application menu. Step 2: Navigate to the Directory Navigate to the directory containing the files you want to rename using the cd command: cd /path/to/your/directory Step 3: Rename Files with a New Extension To rename files with a new extension, use the following command:...

January 9, 2024 · 2 min · 299 words · Saman Wijesinghe

chmod & chown Made Simple, Quick Linux Tutorial

The chmod and chown commands in Linux are used to change the permissions and ownership of files and directories. Here’s a simple guide with examples: chmod Command: The chmod command is used to change the permissions of a file or directory. Syntax: chmod [options] permissions file Options: + : Adds the specified permissions. - : Removes the specified permissions. = : Sets the specified permissions and removes all others. Permissions: r : Read...

November 21, 2023 · 2 min · 284 words · Saman Wijesinghe

Locating MAC & IP on Linux

On Debian-based systems (e.g., Debian, Ubuntu): Display MAC Address: Open a terminal. Type the following command and press Enter: ifconfig Look for your network interface (e.g., eth0, enp0s3, wlp2s0) and find the “HWaddr” field. The value next to “HWaddr” is your MAC address. Display IP Address: Open a terminal. Type the following command and press Enter: ifconfig Find your network interface (e.g., eth0, enp0s3, wlp2s0), and look for the “inet” field....

November 9, 2023 · 2 min · 347 words · Saman Wijesinghe

Instance Info

Download : https://github.com/samanweb/instance-info.git Code By : Saman Wijseinghe Version : 1.0 License : GNU GENERAL PUBLIC LICENSE Platform : Arch Linux or Linux compatible distributions The “Instance Info” tool is a simple Bash script that provides an interactive way to access key system information on your computer. With a user-friendly menu, it allows you to effortlessly view details about your system’s RAM, hard disk, battery (if available), and processor. Additionally, the tool offers an “About” option to provide a brief introduction to itself, making it a handy utility for quickly accessing essential system data....

November 5, 2023 · 1 min · 104 words · Saman Wijesinghe