Shortcuts for Terminal
Use these shortcuts to save time while using Terminal.
Action |
Shortcut |
|
Select a word |
Double-click the word |
|
Select a block of text enclosed in parentheses or brackets, including (,<, {, [ |
Double-click one of the enclosing paretheses or brackets |
|
Select a block of text including special characters |
⌘ + double-click the text |
|
Select two words separated by a space |
⌘ + double-click the space between the words If you continue to hold down the mouse button and the Command key and then drag, Terminal will select the text a word at a time. |
|
Select a complete line of text |
Triple-click the line |
|
Add the complete path to a file |
Drag the file from the Finder into the Terminal window |
|
Create a new shell window |
⌘ + N |
|
Enter a new command to be run |
Shift + ⌘ + N |
|
Connect to a server |
Shift + ⌘ + K |
|
Save |
⌘ + S |
|
Save as |
Shift + ⌘ + S |
|
Save text as |
Option + ⌘ + S |
|
Save selected text as |
Shift + Option + ⌘ + S |
|
Show information about the Terminal window |
⌘ + I |
|
Change the window title |
Shift + ⌘ + T |
|
Send break |
⌘ + period The break command is equivalent to entering Control + C on the command line. |
|
Send reset |
⌘ + R |
|
Send hard reset |
Option + ⌘ + R |
|
Page setup |
Shift + ⌘ + P |
|
|
⌘ + P |
|
Cut |
⌘ + K |
|
Copy |
⌘ + C |
|
Paste |
⌘ + V |
|
Paste the selection |
Shift + ⌘ + V |
|
Paste escaped text |
Control + ⌘ + V |
|
Select all |
⌘ + A |
|
Start keyboard selection |
Shift + ⌘ + Return |
|
End keyboard selection |
Escape |
|
Copy style |
Option + ⌘ + C |
|
Paste style |
Option + ⌘ + V |
|
Find |
⌘ + F |
|
Find the searchterm |
⌘ + G |
|
Find the searchterm previous to the selection |
⌘ + Shift + G |
|
Find using the selected text |
⌘ + E |
|
Open special characters palette |
Option + ⌘ + T |
|
Show fonts |
⌘ + T |
|
Make fonts bigger |
⌘ + "+" |
|
Make fonts smaller |
⌘ + "-" |
|
Next Terminal window |
⌘ + ` |
|
Previous Terminal window |
⌘ + ~ |