Linux Commands
Command references for core Linux tools, syntax, examples, and practical one-liners.
How to List Groups in Linux
Find which groups a user belongs to in Linux using the groups, id, and getent commands. Includes how to list all groups and group members on the system.

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.

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.

Tar Command in Linux: Create and Extract Archives with Examples
Create, extract, list, and compress tar archives in Linux. Examples for gzip, bzip2, xz, and zstd, plus excluding files, wildcard extraction, and stripping path components.

awk Command in Linux: Syntax, Patterns, and Examples
Use awk to extract columns, filter records, and build reports from the command line, with practical examples of patterns, built-in variables, functions, and arrays.

Linux basename Command: Get File Name from Path in Bash
Get just the file name from a full path in Bash. This guide covers basename options, suffix stripping, and how it compares to parameter expansion.

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.

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.

Grep Multiple Patterns: Match Strings, Words, and Regex
Search for multiple patterns or strings at once with grep using the -e flag, fixed-string matching, alternation, and pattern files.

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.

last Command in Linux: Check Login History
Use the last command in Linux to check login history, filter sessions by user or date, and audit access. Covers lastb, lastlog, and the wtmpdb replacement.

How to Use wget in Linux with Examples
Practical wget examples for downloading files, resuming transfers, limiting bandwidth, mirroring websites, and handling authentication on Linux.

How to List Users in Linux
List all users in Linux with getent passwd, lslogins, or /etc/passwd. Filter human users by UID, check group membership, and see who is logged in.

history Command in Linux: View and Manage Bash History
Use the history command in Linux to view, search, and clean up Bash command history. Covers expansions, HISTSIZE, HISTIGNORE, and security tips.

lsblk Command in Linux: List Block Devices
Use lsblk to list disks, partitions, filesystems, UUIDs, and mount points in Linux, then customize columns and produce JSON output for scripts.

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.

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.



