Advertisement
metalx1000

Shell shortcut keys

Dec 16th, 2015
668
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.17 KB | None | 0 0
  1. #Move one character at a time
  2. Arrows or Ctrl+f/b
  3.  
  4. #move a word at a time
  5. Ctrl+arrows or Alt+f/b
  6.  
  7. #Delete a character at a time
  8. Delete or Ctrl+d
  9.  
  10. #delete a word at a time (delete everything until next space)
  11. Go to the begining of the word and press Alt+d
  12.  
  13.  
  14. Ctrl + A    Go to the beginning of the line you are currently typing on
  15. Ctrl + E    Go to the end of the line you are currently typing on
  16. Ctrl + L                Clears the Screen, similar to the clear command
  17. Ctrl + U    Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
  18. Ctrl + H    Same as backspace
  19. Ctrl + R    Let’s you search through previously used commands
  20. Ctrl + C    Kill whatever you are running
  21. Ctrl + D    Exit the current shell
  22. Ctrl + Z    Puts whatever you are running into a suspended background process. fg restores it.
  23. Ctrl + W    Delete the word before the cursor
  24. Ctrl + K    Clear the line after the cursor
  25. Ctrl + T    Swap the last two characters before the cursor
  26. Esc + T Swap the last two words before the cursor
  27. Alt + F Move cursor forward one word on the current line
  28. Alt + B Move cursor backward one word on the current line
  29. Tab Auto-complete files and folder names
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement