Linux46 commands
Linux Commands Cheat Sheet
Essential Linux commands for files, processes, networking, disk management, users, and system administration.
Files & Directories
| Command | Description |
|---|---|
| List all files with details |
| Find files modified in last 24h |
| Disk usage per directory |
| Show disk space usage |
| Create compressed archive |
| Extract archive |
| Sync files with progress |
| Create symbolic link |
| Set file permissions |
| Change file ownership |
Process Management
| Command | Description |
|---|---|
| List all running processes |
| Find process by name |
| Real-time process monitor |
| Interactive process viewer |
| Terminate process by PID |
| Force kill process |
| Run command immune to hangup |
| Find process using port |
Networking
| Command | Description |
|---|---|
| Show IP addresses |
| List listening ports with PIDs |
| Fetch HTTP headers |
| DNS lookup |
| Trace route to host |
| Show routing table |
| List firewall rules |
| Download to stdout |
Text Processing
| Command | Description |
|---|---|
| Recursive search with line numbers |
| Find and replace in file |
| Print specific columns |
| Count and sort occurrences |
| Follow log file |
| Count lines in file |
| Extract CSV columns |
Users & Permissions
| Command | Description |
|---|---|
| Show current user |
| Show user ID and groups |
| Create user with home dir |
| Add user to sudo group |
| Change user password |
| Switch user |
| Edit sudoers safely |
System Info
| Command | Description |
|---|---|
| Kernel and OS info |
| System uptime and load |
| Memory usage |
| OS version details |
| CPU info |
| Recent kernel messages |