Linux Commands
Command references for core Linux tools, syntax, examples, and practical one-liners.
rpm Command in Linux: Install, Query, and Verify Packages
Install an RPM package with rpm -ivh or dnf, then query, upgrade, remove, and verify packages on Fedora, RHEL, Rocky Linux, and AlmaLinux.

curl vs wget: Differences and When to Use Each
Compare curl vs wget defaults, redirects, error handling, retries, recursive downloads, and API requests to choose the right command for each task.

Tar Command in Linux: Create and Extract Archives with Examples
Create, extract, and list tar archives in Linux with gzip, bzip2, xz, and zstd examples, plus extracting to a specific directory and excluding files.

Linux Watch Command
Use the watch command in Linux to run commands at regular intervals and monitor output changes in the terminal. Includes interval, highlighting, pipes, and practical examples.

Linux cp Command: Copy Files and Directories
The cp command copies files and directories in Linux. This guide covers recursive and archive copies, directory contents, overwrite control, and attributes.

How to Remove a User in Linux
Remove a user in Linux with userdel, including the home directory, active sessions, scheduled jobs, SELinux mappings, and files left behind.

smartctl Command in Linux: Check Disk Health with SMART
Use smartctl in Linux to check SMART health, read disk attributes, run self-tests, troubleshoot USB enclosures, and monitor NVMe wear.

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.

echo Command in Linux: Print Text and Variables
Print text, variables, script arguments, and exit codes with echo in Linux, plus escape sequences, colored output, and the quoting pitfalls to avoid.

whoami Command in Linux: Display the Current User Name
The whoami command prints the effective user name on Linux. Covers sudo and su, root checks in scripts, and how it compares to id -un, $USER, and logname.

How to Remove a Symbolic Link (Symlink) in Linux
Remove symbolic links in Linux with rm, unlink, or find. Clean up broken symlinks and avoid the trailing-slash trap that can remove target directory contents.

Bash Best Practices: Writing Safer, Cleaner Scripts
Practical Bash best practices for writing safer and more predictable scripts, covering strict mode, quoting, error handling, and everyday patterns.

su Command in Linux: How to Switch Users
Use the su command to switch users, open a root login shell, and run commands as another account. Includes options, sudo su, troubleshooting, and examples.

Rust Coreutils in Ubuntu 26.04: What uutils Changes for Shell Scripts
Ubuntu 26.04 runs uutils for stat, ln, chown, and more. See what breaks in shell scripts, how to call the GNU tools, and how to switch back.

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.

Grep Command in Linux with Examples
The grep command searches files for text patterns. Quick examples for case-insensitive, recursive, whole-word, regex, and context-line searches.

sort Command in Linux: Sort Lines of Text
Sort lines in Linux alphabetically, numerically, or by column with sort -k and -t. Covers reverse, unique, version, and in-place sorting with examples.



