Linux Commands
Command references for core Linux tools, syntax, examples, and practical one-liners.
How to Remove or Delete a Directory in Linux
Remove a directory in Linux with rmdir for empty folders, rm -rf for non-empty ones, or find for bulk deletion. Examples and common errors.

dd Command in Linux: Copy Disks, Partitions, and Files
This guide explains how to use the dd command in Linux to write ISO images, clone disks, back up partitions, wipe drives, and test disk speed.

echo Command in Linux: Print Text and Variables
How to use the echo command in Linux to print text, display variables, interpret escape sequences, and redirect output to a file. Includes colored output and common pitfalls.

How to Install and Use uv: Fast Python Package Manager
uv is a fast Python package and project manager written in Rust. This guide covers installation on Linux, creating projects, adding dependencies, managing virtual environments, and installing Python versions with uv.

sleep Command in Linux: Pause a Bash Script
How to use the sleep command in bash to pause script execution. Examples cover seconds, minutes, sleep infinity, retry loops, countdowns, and background sleeps.

How to Use SFTP Command to Transfer Files
Use the sftp command to connect over SSH, upload and download files, transfer directories, run batch jobs, and troubleshoot common errors.

fdisk Command in Linux: Create Disk Partitions
Use the fdisk command in Linux to list disks, create GPT or MBR partitions, change partition types, format new partitions, and mount them safely.

ps Command in Linux: ps aux and Common Options
Use ps aux and related ps command options in Linux to list running processes, read output columns, sort by CPU or memory, filter by PID or user, and show full command lines.

How to Remove a User in Linux
Remove user accounts in Linux with userdel. This guide explains how to delete a user, remove the home directory, handle logged-in users, clean up cron jobs, and find files left behind.

How to Add a User to a Group in Linux
Add users to Linux groups with usermod, verify group membership, change primary groups, and fix common issues when group changes do not apply.

mv Command in Linux: Move Files and Directories
Move and rename files and directories in Linux with the mv command. This guide covers single files, directories, multiple files, overwrite prompts, backups, and cross-filesystem moves.

zip Command in Linux: Zip Files and Directories
Create ZIP archives in Linux with the zip command. This guide covers files, directories, recursive archives, compression levels, exclusions, passwords, and split ZIP files.

How to Check File and Directory Size in Linux
Check file and directory sizes in Linux with du. This guide covers readable totals, subdirectory sizes, sorting by size, exclusions, and file size checks.

cd Command in Linux: Change Directories
Use the cd command in Linux to change directories, move to parent and home folders, switch back to the previous directory, and work with absolute or relative paths.

su Command in Linux: Switch User
The su command in Linux switches users in the current session and runs commands with another user's privileges. Examples, options, and a sudo vs su comparison.

netstat Command in Linux: Network Connections and Statistics
Use the netstat command to list network connections, listening ports, routing tables, interface counters, and TCP states on Linux.

fsck Command in Linux: Check and Repair Filesystems
Use the fsck command in Linux to check and repair filesystems safely, run read-only checks, fix unmounted partitions, and schedule boot-time checks.

cat Command in Linux with Examples
Use the cat command in Linux to view files, combine files, create text files, show line numbers, and inspect hidden characters.

Netcat (nc) Command in Linux with Examples
Use the Netcat nc command in Linux to scan ports, listen for connections, transfer files, test TCP and UDP services, and set connection timeouts.

ln Command in Linux: Create Symbolic Links
The ln command creates symbolic links on Linux, giving you a stable name that points to a moving target. This guide covers creating, updating, and cleaning up symlinks, plus the -sfn pattern used for atomic deploys.
