Basic Shortcut
Control + CTo abort/kill the process that is currently running in this Terminal.
Control + DTo exit the current tab of Terminal.
Command + K / Control + LTo clear screen. The same with command “clear”.
!!To print and re-run the last entered command.
TOPTo display all active processes and enter “Q” to quit. Terminal version of Activity Monitor.
History + number / nothingTo display a specific number or all of the commands executed in the past.
Shortcut for Movement
- …
Shortcut for Editing
Control + WTo delete the word before the cursor.
Control + UTo delete the line before the cursor.
Control + KTo delete the line after the cursor.
Escape + TTo swap the two words before the cursor.
Commands for Searching Text
Control + RWill open up (reverse-i-search)`’: and find the latest matched command that is previously used.