Here are some of the most useful keyboard shortcuts for enhancing productivity in the terminal:
-
Navigation:
Ctrl + A: Move the cursor to the beginning of the line.Ctrl + E: Move the cursor to the end of the line.Ctrl + F: Move the cursor forward one character.Ctrl + B: Move the cursor backward one character.
-
Editing:
Ctrl + U: Clear the line before the cursor.Ctrl + K: Clear the line after the cursor.Ctrl + W: Delete the word before the cursor.Alt + D: Delete the word after the cursor.
-
Process Management:
Ctrl + C: Terminate the current running process.Ctrl + Z: Suspend the current process and put it in the background.
-
Command History:
Up Arrow: Scroll through previous commands.Down Arrow: Scroll forward through command history.Ctrl + R: Search through command history interactively.
-
Terminal Control:
Ctrl + L: Clear the terminal screen.Ctrl + D: Log out of the current shell session (if at the command prompt).
-
Tab Completion:
Tab: Auto-complete file and directory names.
These shortcuts can greatly improve your efficiency and ease of use when working in the terminal.
