Here I will give you some interesting shortcuts, that every one of us need when working on daily bases with unix or mac and their terminal:
- Up/Down arrows:
Preview previews commands. It saves your time when you need the previously typed commands again and again for execution.
- control + a:
Moves the cursor to start of the line. It is very useful when you got a long line about fifteen chars or more, and you need to move to the start of the line or close to the start of the line to do some changes, this shortcut will move you to the start very quickly instead of returning character by character.
- control + e:
Moves the cursor to end of the line. So you can remember that by "a" for alphabit and "e" for the end.
- option + click line (Mac OS x and terminal only):
Moves the cursor to the click point.
- tab (autocomplete):
Try to complete the command or (file or folder name).
- tab + tab:
It is useful when tab doesn't complete, pressing tab twice will show the list of available possible matches.
- command + ~:
Cycle between terminal windows (terminal only), for GUI use command + tab.
- command + k:
Will clear the screen and scroll back(terminal only).
- command + plus(+):
Makes fonts bigger.
- command + minus(-):
Makes fonts smaller.
- option + command + T:
Open the characters map viewer.
- command + E:
Find using the selected text.
- command + S:
Export terminal text as.
- shift + command + S:
Export selected text as.
- Triple-click the line
Select a complete line of text.
- Double-click the word
Select a word.