Terminal Cheat Sheet
Terminal Cheat Sheet
tab
Pressing tab will attempt to automatically complete the
command you've begun typing. Process Control
ctrl-d
Useful Commands Sends end of file, will stop some
processes that are waiting for an EOF.
top
Shows active processes. Press q to quit.
ctrl-z
Stops the currently running command.
sudo command
Run a command as super user - type in your password fg
when prompted. Continues running the stopped command.
open command kill PID
Opens a file as if you double clicked it.
Kills a process with an ID of 'PID'.
find -name filename | xargs grep text
For file names matching 'filename', search their contents killall name
for 'text'. Kills a process called 'name'.
screen ps aux
Amazingly useful screen manager: read the manual!
Lists active processes.