Showing posts with label bash shortcuts. Show all posts
Showing posts with label bash shortcuts. Show all posts

Tuesday, October 25, 2011

Bash Shortcuts


GNU Readline Library enable to edit the command line shortcuts. Readline uses emacs key binding. It means a lot of CTRL/ALT keys.

  1. Ctrl+C # Interrupt to exit, terminate the command

  2. Ctrl+D # disconnect from shell

  3. Ctrl+Z # suspend the process, suspend/stop the command

  4. Ctrl+l # clear screen

  5. Ctrl+s # stops the output to the screen

  6. Ctrl+q # allow output to the screen
    (If previously stopped using Ctrl+s)

  7. !! - run last command

  8. Ctrl+r # search the history backwards

  9. Ctrl+g # escape from history searching mode

  10. Ctrl+a # go to start of the command line

  11. Ctrl+e # go to end of the command line

  12. Ctrl+f # move forward one character (identical to VIM)

  13. Ctrl+b # move backward one character (identical to VIM)

  14. Ctrl+p # previous command in history

  15. Ctrl+n # next command in history