translations: [ de/Deutsch ] · [ es/Español ] · [ fr/Français ]
Table of contents
The Linux terminal is a powerful tool for executing commands and performing various tasks. Familiarizing yourself with terminal shortcuts enhances productivity and makes navigation seamless. Here are some essential shortcuts to navigate within the terminal efficiently:
Moving the Cursor
Jump to Start/End of Line:
Ctrl + A
: Moves the cursor to the start of the line.Ctrl + E
: Moves the cursor to the end of the line.
Move Word by Word:
Alt + B
: Jumps backward one word.Alt + F
: Jumps forward one word.
Editing Commands
Delete/Backspace:
Ctrl + D
: Deletes the character under the cursor.Ctrl + H
orBackspace
: Deletes the character before the cursor.
Clearing the Terminal:
Ctrl + L
: Clears the terminal screen.
Undo the Last Edit:
Ctrl + _
(Ctrl + Shift + -): Undo the last change.
Command History
Navigate Command History:
Ctrl + R
: Searches command history backward.Ctrl + S
: Searches command history forward.
Recall Previous Commands:
Up Arrow
: Accesses the previous command.Down Arrow
: Accesses the next command (if available).
Disconnect from Remote Hosts:
Ctrl + D
: Terminates the connection with a remote host.
Miscellaneous:
Ctrl + C
: Interrupts the current command.Ctrl + Z
: Suspends the current command, returning to the shell.
These shortcuts significantly speed up terminal usage, allowing quick movement, editing, and accessing command history. Practice incorporating them into your workflow to enhance efficiency.
Remember, mastering these shortcuts takes time and practice. Experiment with these commands in your terminal emulator to become proficient and streamline your workflow.
Created on: Jan 2, 2024
Discover More within this Subject:
- Most Used and Useful Linux Commands
- Understanding `kill` Command in Linux
- Understanding `ps` Command in Linux
- Flatpak Software Removal and Cleanup
- Installing Software With Flatpak