Linux Commands
Command references for core Linux tools, syntax, examples, and practical one-liners.
Linux Folder Size: How to Check File and Directory Sizes
Check folder and file sizes in Linux with du. Compare directory totals, rank subdirectories, exclude paths, and check free space with df.

How to Generate a Random Password or String in Linux
Generate random passwords and strings in Linux with openssl rand, /dev/urandom, pwgen, and Python. Choose hex, Base64, URL-safe tokens, or passphrases.

git diff Command: Compare Changes Between Commits and Branches
Use git diff to compare your working directory, staged files, commits, and branches, with practical examples of the options you will use most.

jobs Command in Linux: List and Manage Background Jobs
The jobs command lists background and suspended processes in the current shell session. This guide covers syntax, options, job specifications, and practical examples.

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 safe symlink updates for deployments.

bc Command in Linux: Command-Line Calculator
Use bc for arbitrary-precision math on the Linux command line, with examples covering scale, functions, base conversion, and use inside shell scripts.

type Command in Linux: Show Command Type and Location
Check how Bash resolves a name with type: alias, function, builtin, keyword, or file on disk. Covers -t, -a, -p, -P, and where Zsh and dash differ.

pushd and popd Commands in Linux: Navigate Directories with a Stack
Save directories to a stack with pushd, return with popd, and jump between them in Bash. Covers dirs, stack rotation, ~N shortcuts, quiet use in scripts, and common errors.

wall Command in Linux: Broadcast Messages to Logged-In Users
The wall command broadcasts a message to the terminals of all logged-in users in Linux. This guide covers sending messages from arguments, files, and pipes, with group targeting and banner control.

cat Command in Linux: View, Combine, and Create Files
Display, combine, and create files with the cat command in Linux, plus line numbers, hidden characters, and when to use less instead.

shutdown Command in Linux: Power Off, Reboot, and Schedule
How to use the shutdown command in Linux to power off, halt, or reboot the system immediately or at a scheduled time, with examples of all common options.

tee Command in Linux with Examples
Use the tee command to save command output to a file while still printing it in the terminal. Covers appending, writing to multiple files, capturing errors, and sudo tee for root-owned files.

/etc/passwd in Linux: File Format and Fields Explained
The cat /etc/passwd command displays local Linux accounts. This guide explains its seven fields and when to use getent passwd instead.

du Command in Linux: Check Disk Usage with du -sh
du -sh prints the total size of a directory in one line. See how to list subdirectory sizes, include hidden files, stay on one filesystem with -x, and sort by size.

nvidia-smi Command in Linux: Monitor GPU Usage
Monitor NVIDIA GPU usage on Linux with nvidia-smi. Read memory, temperature, and power metrics, track processes, and log GPU statistics to CSV.

How to Check the Kernel Version in Linux
Run uname -r to print the running Linux kernel version. This guide also covers hostnamectl, /proc/version, listing installed kernels, and spotting a pending reboot.

locate Command in Linux: Find Files Quickly
The locate command finds files by name in a fraction of a second by searching a prebuilt index. Covers plocate, updatedb, exact name matches, and regex.

gzip Command in Linux
Compress and decompress files with the gzip command in Linux. Covers keeping originals, compression levels, directories, listing, and testing .gz files.

usermod Command in Linux: Modify User Accounts and Groups
Modify Linux user accounts with usermod: add users to groups with -aG, change the shell or home directory, rename users, set passwords, and lock accounts.

Netcat (nc) Command in Linux with Examples
Netcat (nc) command examples for Linux: check a port with nc -zv, scan port ranges, open listeners, transfer files, and set timeouts with -w.
