key bindingdescriptiontypecomment
C-fmove forward one characteredit
C-bmove backward one characteredit
C-amove cursor to the beginning of the linenavigate
C-emove cursor to the end of the linenavigate
M-bmove cursor backward to the beginning of wordnavigate
M-fmove cursor forward to the end of wordnavigate
C-x C-xmove cusor between the two most recent cursor positionsnavigate
C-udelete backwards from cursor to the beginning of the lineedit
C-kdelete forwards from cursor to the end of the lineedit
C-wdelete backwards from cursor to beginning of wordedit
M-ddelete forwards from cursor to end of wordeditUse Esc on macOS.
C-hdelete backwards a characteredit
C-ddelete forwards a characteredit
C-ypaste text that was cutedit
M-ccapitalize from cursor to end of wordedit
M-umake uppercase from cursor to end of wordedit
M-lmake lowercase from cursor to end of wordedit
M-tswap current word with previousedit
C-tswap character under cursor with the previous oneedit
C-_undoedit
C-lclear the screencontrol
C-sstop output to the screen (for long running verbose command)control
C-qallow output to the screen (if previously stopped using command above)control
C-cterminate the commandcontrol
C-zsuspend/stop the commandcontroltype `bg` to put the command at background
C-rsearch the history backwardsrecall
C-gescape from history searching moderecall
C-pprevious command in historyrecall
C-nnext command in historyrecall
M-.use the last word of the previous commandrecall
`!!`run last commandrecall
`!foobar`run the most recent command that starts with `foobar`recalle.g. `!ls`
`!foobar:p`print out the most recent command that starts with `foobar`recall
`!$`run the last word of the previous command as a commandrecallsame as M-.
`!$:p`print the last word of the previous commandrecall
`!*`run the previous command except for the last word as a commandrecall
`!*:p`print the previous command except for the last wordrecall