User Tools

Site Tools


eric:computer:bash:commands:bash_cmd_line_editing

Bash Command Line Editing


Source: Bash Reference Manual, Chapter 8

Written for a Mac Keyboard. Some keys dependent on Terminal settings.

Command Description
ctrl-bback one character
ctrl-fforward one character
ctrl-amove to start of line
ctrl-emove to end of line
opt-bmove back one word
opt-fmove forward one word
Backspacedelete character to the left of the cursor
ctrl-ddelete character under the cursor
Del delete character to the right of the cursor
ctrl-lclear the screen and reprint line
opt-Delcut from the cursor to the start of the current word (kill)
ctrl-wcut from the cursor to the previous white space (kill)
ctrl-kcut from the cursor to the end of the line (kill)
opt-dcut from the cursor to the end of current word (kill)
ctrl-ypaste the most recent cut (yank)
opt-yrotate cut buffer and paste new top item (yank)
ctrl-_undo last editing command
eric/computer/bash/commands/bash_cmd_line_editing.txt · Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki