Linux/Bash
Essential shell commands and utilities for file management, process control, system monitoring, and daily terminal workflows.
103 commands
Browse by Topic
Getting Started
Quick setup and installation
Files
File operations
Processes
Process management
Network
Network commands
Disk
Disk operations
Text
Text processing
SSH
SSH operations
Systemd
systemd analysis
Journal
systemd journal logs
Check kernel version
Display the current Linux kernel version
Check distro info
Display distribution name, version, and release details
Update system packages
Refresh package lists and upgrade all packages on Debian/Ubuntu
Disk usage by directory
Show top 10 largest directories.
Check disk space
Show disk usage in human-readable format.
Find disk hogs
Interactive disk usage analyzer.
List block devices
Show all block devices with filesystem type, label, and UUID.
Show block device IDs
Display UUID, type, and label of all partitions.
Mount a filesystem
Mount a partition to a directory mount point.
Unmount a filesystem
Unmount a mounted filesystem safely.
Check filesystem integrity
Run filesystem check and repair. Partition must be unmounted.
Format partition as ext4
Create an ext4 filesystem on a partition. Destroys existing data.
Show inode usage
Display inode usage per filesystem. Running out of inodes prevents file creation.
Estimate file space usage
Show the total size of a specific directory.
Recursive grep with context
Search recursively with context lines.
Replace text in multiple files
Find and replace text in all matching files.
Monitor file changes
Follow log file and filter for errors.
Extract columns with awk
Print the first and third columns from a file.
Stream edit with sed
Print only lines 10 through 20 of a file.
Sort and deduplicate
Count occurrences of each line, sorted by frequency.
Count words, lines, chars
Count lines, words, and characters in a file.
Extract specific fields
Extract the first and third columns from a CSV file.
Translate or delete characters
Convert uppercase to lowercase characters.
Tee output to file and screen
Write command output to both stdout and a file simultaneously.
Compare two files
Show unified diff between two files.
Show first N lines
Display the first 50 lines of a file.
Show last N lines
Display the last 100 lines of a log file.
Grep with regex pattern
Search for lines matching an IP address pattern using extended regex.
SSH tunnel (local port forward)
Forward local port 8080 to remote's localhost:80.
SSH with key file
Connect using a specific private key.
Copy SSH key to server
Install your public key on a remote server.
Generate SSH key pair
Generate a modern Ed25519 SSH key pair.
Remote port forward
Expose local port 3000 on the remote server as port 9090.
SOCKS proxy via SSH
Create a SOCKS5 proxy tunnel through the remote server.
Copy file via SCP
Securely copy a directory to a remote server.
Run remote command
Execute commands on a remote server without interactive session.
SSH with agent forwarding
Forward local SSH agent to the remote host for key-based access to other servers.
Show boot time breakdown
Display total boot time and time spent in kernel vs userspace.
List services by startup time
Show which services took the longest to start during boot.
Show critical startup path
Display the critical chain of units that delayed boot the most.
Generate boot timeline graph
Create an SVG visualization of the boot process timeline.
Validate unit file syntax
Check a systemd unit file for syntax errors and configuration issues.
Security analysis of service
Analyze security and sandboxing settings of a systemd service unit.
Follow service logs
Stream logs for a specific systemd service in real-time.
Time-based log query
Display logs from a specific time range using natural language.
Show errors from current boot
Display all error-level messages since the last system boot.
Show journal disk usage
Display total disk space used by systemd journal logs.
Discussion
Loading comments...