Free linux command list download - congratulate, you
Linux Command Line Cheat Sheet by DaveChild
Bash Commands
Bash Shortcuts
Run last command starting with abc |
Print last command starting with abc |
Last argument of previous command |
Last argument of previous command |
All arguments of previous command |
Run previous command, replacing abc with 123 |
Bash Variables
Show environment variables |
Output value of $NAME variable |
IO Redirection
Output of cmd2 as file input to cmd1 |
Standard output (stdout) of cmd to file |
Error output (stderr) of cmd to file |
stdout to same place as stderr |
stderr to same place as stdout |
Every output of cmd to file |
Pipes
Command Lists
Run cmd2 if cmd1 is successful |
Run cmd2 if cmd1 is not successful |
Directory Operations
ls Options
Show all (including hidden) |
Comma-separated output |
Search Files
Search for pattern in files |
Case insensitive search |
Show matched part of file only |
Find files starting with name in dir |
Find files owned by name in dir |
Find files modifed less than num minutes ago in dir |
Find binary / source / manual for command |
Find file (quick search of system index) |
File Operations
Watch a Command
Process Management
Show snapshot of processes |
Kill process with name name |
Kill all processes with names beginning name |
Nano Shortcuts
Screen Shortcuts
File Permissions
File Permission Numbers
First digit is owner permission, second is group and third is everyone. | |
Calculate permission digits by adding numbers below. | |
-