pastebin - collaborative debugging tool
bash.kpaste.net RSS


command_shortcuts
Posted by Anonymous on Fri 30th Jan 2015 01:54
raw | new post

  1. # Command Editing Shortcuts
  2.  
  3. Ctrl + a – go to the start of the command line
  4. Ctrl + e – go to the end of the command line
  5. Ctrl + k – delete from cursor to the end of the command line
  6. Ctrl + u – delete from cursor to the start of the command line
  7. Ctrl + w – delete from cursor to start of word (i.e. delete backwards one word)
  8. Ctrl + y – paste word or text that was cut using one of the deletion shortcuts (such as the one above) after the cursor
  9. Ctrl + xx – move between start of command line and current cursor position (and back again)
  10. Alt + b – move backward one word (or go to start of word the cursor is currently on)
  11. Alt + f – move forward one word (or go to end of word the cursor is currently on)
  12. Alt + d – delete to end of word starting at cursor (whole word if cursor is at the beginning of word)
  13. Alt + c – capitalize to end of word starting at cursor (whole word if cursor is at the beginning of word)
  14. Alt + u – make uppercase from cursor to end of word
  15. Alt + l – make lowercase from cursor to end of word
  16. Alt + t – swap current word with previous
  17. Ctrl + f – move forward one character
  18. Ctrl + b – move backward one character
  19. Ctrl + d – delete character under the cursor
  20. Ctrl + h – delete character before the cursor
  21. Ctrl + t – swap character under cursor with the previous one
  22.  
  23.  
  24. # Command Recall Shortcuts
  25.  
  26. Ctrl + r – search the history backwards
  27. Ctrl + g – escape from history searching mode
  28. Ctrl + p – previous command in history (i.e. walk back through the command history)
  29. Ctrl + n – next command in history (i.e. walk forward through the command history)
  30. Alt + . – use the last word of the previous command
  31.  
  32.  
  33. # Command Control Shortcuts
  34.  
  35. Ctrl + l – clear the screen
  36. Ctrl + s – stops the output to the screen (for long running verbose command)
  37. Ctrl + q – allow output to the screen (if previously stopped using command above)
  38. Ctrl + c – terminate the command
  39. Ctrl + z – suspend/stop the command

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}





All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at