development:bash_shortcuts

This is an old revision of the document!


Bash shortcuts

Shortcut Command
Ctrl + a Go to the beginning of line.
Ctrl + e Go to the end of line.
Ctrl + _ Undo
or Ctrl + p Previous command
Ctrl + r Search previous command
Ctrl + x, Ctrl + e Open editor to edit the current command
Ctrl + k Cut from cursor to end of line
Ctrl + u Cut from cursor to beginning of line
Ctrl + y Paste

See:

  • bind -P | grep "can be found" | sort | awk '{printf "%-40s", $1} {for(i=6;i<=NF;i++){printf "%s ", $i}{printf"\n"}}'
  • man bash
  • development/bash_shortcuts.1647699152.txt.gz
  • Last modified: 2022/03/19 14:12
  • by aziz