Bash Cheat Sheet
Bash Cheat Sheet
Bash Cheat Sheet
design based on vim cheat sheet: http://viemu.com original idea from http://linuxhelp.blogspot.com by Carlos Fenollosa - http://weblog.topopardo.com
~ `
Complete username
Complete command
Complete hostname
Complete variable
_ -
Undo
+ =
} ]
Jump to BOL
Freeze terminal
Delete char under cursor / Exit (if empty) Delete word forward from cursor
Backspace
Clear/redraw terminal
| \
Terminate command
Complete filename
SPACE BAR
Set mark at current char
Color key
Controlkey
Key
To run a program directly into background, apend a & after the program name, like $ ping www.google.com & To kill processes by their name, use 'killall name' The Up and Down cursor keys let you browse through history Ctrl-PageUp and CtrlPageDown let you scroll the terminal, even remote or graphical ones.
If running from a remote terminal, background processes will be killed when you logout. To avoid this, use nohup and & like $ nohup wget foo.com & Remember to escape filenames or use quotes (") if there are spaces or special characters: $ ls -l "some document $ rm make\$\$\$fast.txt And finally, remember that GUIs are cool, but the terminal can save you a lot of time!