Linux Commands
Command references for core Linux tools, syntax, examples, and practical one-liners.
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.

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.

How to Tail and Filter Logs in Real Time on Linux
Follow Linux logs in real time with tail -F, filter live output with grep, pause with less +F, and stream systemd service logs with journalctl -f.

Linux File Permissions Explained
Linux file permissions control who can read, write, and execute files and directories. Learn how to inspect and change permissions with ls, stat, and chmod.

Chmod Recursive: Change File Permissions Recursively in Linux
Use chmod -R to change permissions recursively in Linux. This guide covers numeric and symbolic modes, examples using find, common patterns, and safety tips.

chmod 777: What It Means and Why You Should Never Use It
chmod 777 grants every user full control of a file or directory. See why it is risky and when to use safer 755 or 644 permissions instead.

chmod Command in Linux: Change File and Directory Permissions
The chmod command changes file and directory permissions in Linux. This guide covers what chmod 755, 644, 700, and 600 mean, how to use symbolic and numeric modes, and how to apply permissions recursively.

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.

mv Command in Linux: Move Files and Directories
Move and rename files and directories in Linux with the mv command, including overwrite prompts, backups, the -T option, and cross-filesystem moves.
