Linux Commands
Command references for core Linux tools, syntax, examples, and practical one-liners.
pgrep Command in Linux: Find and Filter Running Processes
The pgrep command finds running processes by regex pattern, user, terminal, or parent PID and prints matching PIDs. This guide covers exact matching, filtering options, and script-friendly exit checks.

ssh Command in Linux: Connect to Remote Servers
The ssh command connects you to a remote Linux server. This guide covers its syntax, the most useful options, key-based login, and port forwarding.

less Command in Linux: Navigate and Search Files
How to use the less command in Linux to view files page by page, search for text, follow log files in real time, and navigate with vi-style key bindings.

How to Find Which Process Is Using a Port in Linux
Find the Linux process listening on a TCP or UDP port with ss, lsof, fuser, or netstat, then inspect and stop it safely.

How to Unzip Files in Linux
Extract ZIP archives in Linux with the unzip command: unzip to a folder, handle password-protected and multiple archives, list or test contents, and exclude files.

zip Command in Linux: Zip Files and Directories
Create ZIP archives in Linux with the zip command. Zip directories recursively, exclude files, add a password, and split large archives.

jq Command: Process JSON from the Terminal
How to use the jq command to read, filter, and transform JSON on the command line, from selecting fields to building new objects and parsing API responses.

passwd Command in Linux: Change User Passwords
Change your own, another user's, or the root password in Linux with the passwd command. Covers password expiry with chage, forcing a change at next login, and account locking.

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.
