Key combinations in Bash [Keyboard Shortcuts]

Key combinations in Bash [Keyboard Shortcuts]



Ctrl+A – Move cursor to the beginning of the command line.
Ctrl+C – End a running program and return the prompt, see Chapter 4.
Ctrl+D – Log out of the current shell session, equal to typing exit or logout.
Ctrl+E – Move cursor to the end of the command line.
Ctrl+H – Generate backspace character.
Ctrl+L – Clear this terminal.
Ctrl+R – Search command history.
Ctrl+Z – Suspend a program.
ArrowLeft and ArrowRight – Move the cursor one place to the left or right on the command line, so that you can insert characters at other places than just at the beginning and the end.
ArrowUp and ArrowDown -
Browse history. Go to the line that you want to repeat, edit details if necessary, and press Enter to save time.
Shift+PageUp and Shift+PageDown – Browse terminal buffer (to see text that has “scrolled off” the screen).
Tab -
Command or filename completion; when multiple choices are possible, the system will either signal with an audio or visual bell, or, if too many choices are possible, ask you if you want to see them all.
Tab Tab – Shows file or command completion possibilities.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>