Bash-Shortcuts

The shortcuts listed here are based on GNU bash version 3.00. The abbreviation of “CTRL-a” means to press and hold down the Control key and press ' a ' once. The shortcuts should be the same for most other shells.

The basic moving shortcuts allow movement to the end of the line, to the start of the line or to step through by character. The commands come in really handy when editing different file in another directory or copying files.

The Basic editing shortcuts allow for cutting part of the command line, pasting the cut back into the line, cutting a word or deleting a character.

(note: When the cursor is at the beginning of the line CTRL-d will log your session off.)

The rest of the short cuts perform more system based changes for your login session. CTRL-c useful for stopping mistakes and CTRL-z is a way of getting back to the command prompt without closing the current running program.

comments powered by Disqus