File Permissions & Ownership
chmod — Change file permissions
Changes file or directory permission bits.
Controls read, write, and execute access.
$ chmod 644 file.txt
$ chmod +x script.sh
chown — Change file owner
Changes file owner and group.
Requires root privileges.
$ sudo chown user:user logfile.txt
stat — Detailed file information
Displays detailed file metadata.
Shows permissions, size, and timestamps.
$ stat logfile.txt
File: logfile.txt
size: 30 Blocks: 8 IO Block: 4096 regular file
Device: 31h/49d Inode: 430 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 501/ csp) Gid: ( 1000/ csp)
Access: 2026-02-04 20:22:37.252816950 -0500
Modify: 2026-02-04 20:22:35.421653163 -0500
Change: 2026-02-04 20:22:35.421653163 -0500
Birth: 2026-02-04 20:21:32.777697977 -0500
Process & System Control
ps — View running processes
Lists running processes.
aux shows all users and full details.
top — Real-time process monitor
Shows real-time system processes.
Updates CPU and memory usage continuously.
htop — Enhanced process viewer (install first)
Interactive and user-friendly process viewer.
Supports mouse control and process tree.
kill — Stop a process by PID
Sends a signal to a process by PID.
Commonly used to terminate processes.
pkill — Kill process by name
Kills processes by name.
Faster than searching PID manually.
Networking Basics
ip a — Show IP addresses
Displays network interfaces and IP addresses.
Replaces older ifconfig.
ping — Test network connectivity
Tests network reachability.
Measures latency and packet loss.
curl — Fetch data from a URL
Transfers data from URLs.
Commonly used for APIs and HTTP testing.
wget — Download files
Downloads files from the internet.
Works well for scripts and automation.
Compression & Archives
tar — Create/extract archives
Creates or extracts archive files.
Commonly used with gzip compression.
zip — Create ZIP archives
Creates ZIP archive files.
Widely supported across platforms.
unzip — Extract ZIP files
Extracts ZIP archives.
Preserves file structure.
Disk & Hardware
lsblk — List block devices
Lists block storage devices.
Shows disks, partitions, and mount points.
mount — Mount a filesystem
Attaches a filesystem to a directory.
Makes storage accessible.
umount — Unmount a filesystem
Detaches a mounted filesystem.
Must be done before device removal.
Terminal Productivity
clear — Clear terminal screen
Clears the terminal display.
Does not delete command history.
history — Show command history
Shows previously executed commands.
Useful for command recall.
alias — Create command shortcuts
Creates command shortcuts.
Improves productivity.
watch — Run a command repeatedly
Runs a command at fixed intervals.
Useful for live monitoring.
Text Editing & Input
nano — Terminal text editor
Simple terminal-based text editor.
Beginner-friendly with on-screen help.
xargs — Build argument lists from input
Builds command arguments from input.
Used in pipelines for batch operations.
User & Session Control
logout — End terminal session
Ends the current shell session.
Logs the user out of the terminal.