Linux Commands
Command references for core Linux tools, syntax, examples, and practical one-liners.
How to List Users in Linux
List Linux users with getent passwd, lslogins, or /etc/passwd. Filter accounts by UID, check group membership, and see who is logged in.

date Command in Linux: Format, Timezone, and Epoch
Format dates, convert timezones, and work with Unix timestamps using the Linux date command, with copy-paste examples for the terminal and shell scripts.

Grep Exclude: Patterns, Files, and Directories
Use grep to exclude patterns, files, and directories from search results. Examples for --invert-match, --exclude, --exclude-dir, and --include.

sftp Command in Linux: Transfer Files Securely
The sftp command transfers files securely over SSH. Connect to servers, upload and download files, resume transfers, and automate batch jobs.

file Command in Linux: Determine File Types
Identify file types from the command line using the Linux file command. Covers basic usage, MIME types, compressed files, symlinks, and the magic database.

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.



