Puredyne/Terminal Shortcuts

Terminal Shortcuts

edit

This is a list of handy shortcuts you can use in the terminal.

Command Function
Tab Auto-complete files and folder names
Ctrl + a Go to the beginning of the line you are currently typing on
Ctrl + e Go to the end of the line you are currently typing on
Ctrl + l Clears the Screen, similar to the clear command
Ctrl + u Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + h Same as backspace
Ctrl + p Go back to the previous command in history
Ctrl + n Go to the next command in history
Ctrl + r Let’s you search through previously used commands
Ctrl + c Kill whatever you are running
Ctrl + d Exit the current shell
Ctrl + z Puts whatever you are running into a suspended background process. fg restores it
Ctrl + w Delete the word before the cursor
Ctrl + k Clear the line after the cursor
Ctrl + t Swap the last two characters before the cursor
Ctrl + t Swap the last two words before the cursor
Alt + t Reverse the spelling of the word in front of the cursor (bash)
Reverse the order of the two words in front of the cursor (zsh)
Alt + f Move cursor forward one word on the current line
Alt + b Move cursor backward one word on the current line
Alt + u Turn the word after the cursor into all uppercase word
Alt + l Turn the word after the cursor into all lowercase word

Copy & Paste

edit

Any highlighted text by the mouse can be pasted anywhere with the middle click of the mouse or by pressing the Shift-Insert key combination.