7.3 Command Input
bash supports you with a lot of keyboard shortcuts for entering commands. In particular, you can use the (↑) and (↓) cursor keys to reedit the most recent commands you entered, which saves a lot of typing work. When you log out of a shell, the most recently entered commands are stored in the ~/.bash_history file and are thus available again after the next login.
Command lines can be modified as in a text editor; that is, you can navigate within the entered line using the cursor keys and make corrections. By default, the bash keyboard mapping adopts the most important keyboard shortcuts of the Emacs editor: (Ctrl)+(A) moves the cursor to the beginning of the line, (Ctrl)+(E) to the end, and so on. Vi fans can alternatively ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access