Linux Terminal Basics, Files & Directories

1. Understanding Files and Directories Files: In Linux, everything is treated as a file. Files can contain text, programs, images, or any other type of data. They are organized within directormkdir: Creates a new directory. ies. Directories (Folders): Directories are containers for files and other directories. They provide a way to organize and manage files on your system. 2. Basic Commands ls: Lists files and directories in the current directory....

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

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

Bloder

In this tutorial, we’ll walk through creating and using a Bash script to download files from specified URLs. The script is capable of downloading various types of files such as videos, audios, images, text files, and more. Step 1: Download Bash Script Use your terminal git clone https://github.com/samanweb/bloder.git cd bloder Step 2: Make the Script Executable Make the script executable using the chmod command: chmod +x download_files.sh Step 3: Run the Script Execute the script by running the following command:...

February 7, 2024 · 1 min · 148 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