Terminal Commands Flashcards
(113 cards)
Ctrl + A
Go to the beginning of the line you’re currently typing on
Ctrl + E
Go to the end of the line you’re currently typing on
Ctrl + U
Clear the line before the cursor
Ctrl + K
Clear the line after the cursor
Ctrl + W
Delete the word before the cursor
Ctrl + T
Swap the last two characters before the cursor
Esc + T
Swap the last two words before the cursor
Ctrl + L
Clear the screen
Ctrl + C
Kill whatever you’re running
Ctrl + D
Exit the current shell
Option + →
Move cursor one word forward
Option + ←
Move cursor one word backward
Ctrl + F
Move cursor one character forward
Ctrl + B
Move cursor one character backward
Ctrl + Y
Paste whatever was cut by the last command
Ctrl + Z
Puts whatever you’re running into a suspended background process
Ctrl + _
Undo the last command
/ (Forward Slash)
Top level directory
. (Single Period)
Current directory
.. (Double Period)
Parent directory
~ (Tilde)
Home directory
sudo [command]
Run command with the security privileges of the super user
nano [file]
Opens the Terminal editor
open [file]
Opens a file