Catalog / Command-Line Tools & Utilities Cheatsheet
Command-Line Tools & Utilities Cheatsheet
A quick reference guide to essential command-line tools and utilities, covering file manipulation, process management, networking, and system information.
File Management
Basic Operations
|
List directory contents. |
|
Print working directory. |
|
Change directory. |
|
Create a new directory. |
|
Remove a file. |
|
Remove an empty directory. |
|
Copy a file or directory. |
|
Move or rename a file or directory. |
|
Create an empty file or update timestamp. |
Advanced File Operations
|
Find files matching a pattern. |
|
Search for a pattern in a file. |
|
Display the first few lines of a file. |
|
Display the last few lines of a file. |
|
Count words, lines, and bytes in a file. |
|
Change file permissions. |
|
Change file owner and group. |
|
Compress a directory into a tar.gz archive. |
|
Extract a tar.gz archive. |
Process Management
Process Information
|
Display a snapshot of current processes. |
|
Display dynamic real-time view of running processes. |
|
Interactive process viewer. |
|
Find the process ID of a running process. |
|
Find processes by name or other attributes. |
|
Display a tree of processes. |
Process Control
|
Terminate a process. |
|
Forcefully terminate a process (SIGKILL). |
|
Kill processes by name or other attributes. |
|
Run a command immune to hangups, with output to nohup.out. |
|
Move a process to the background. |
|
Move a process to the foreground. |
|
List active jobs. |
Networking
Network Information
|
Display network interface configuration. |
|
Display IP addresses. |
|
Display listening ports and associated processes. |
|
Another utility to display socket statistics. |
|
Test network connectivity. |
|
Trace the route packets take to a host. |
|
DNS lookup utility. |
|
Query DNS servers to obtain domain name or IP address mapping. |
Network Tools
|
Transfer data from or to a server. |
|
Download files from the web. |
|
Secure Shell client for remote login. |
|
Securely copy files between hosts. |
|
Netcat listener on a port. |
|
Netcat client connecting to a host and port. |
System Information
Hardware Information
|
Display CPU architecture information. |
|
List block devices. |
|
List PCI devices. |
|
List USB devices. |
|
Display memory usage. |
System Status
|
Display system information. |
|
Show how long the system has been running. |
|
Display disk space usage. |
|
Display the disk usage of a directory. |
|
Show who is logged on and what they are doing. |
|
Show listing of last logged in users. |
|
Display the current date and time. |