Shell
Linux's powerful command-line interface for efficient system administration and automation through shell scripts
Ctrl+A
Move to beginning of line
Moves the cursor to the beginning of the current line.
💡 Hint: A (beginning)
Ctrl+E
Move to end of line
Moves the cursor to the end of the current line.
💡 Hint: End
Ctrl+F
Move forward one character
Moves the cursor one character to the right (same as → key).
💡 Hint: Forward
Ctrl+B
Move backward one character
Moves the cursor one character to the left (same as ← key).
💡 Hint: Backward
Alt+F
Move forward one word
Moves the cursor one word to the right.
💡 Hint: Alt + Forward
Alt+B
Move backward one word
Moves the cursor one word to the left.
💡 Hint: Alt + Backward
Ctrl+U
Delete to beginning of line
Deletes all characters from the cursor to the beginning of the line.
💡 Hint: Undo line
Ctrl+K
Delete to end of line
Deletes all characters from the cursor to the end of the line.
💡 Hint: Kill
Ctrl+W
Delete previous word
Deletes the word to the left of the cursor.
💡 Hint: Word delete
Alt+D
Delete next word
Deletes the word to the right of the cursor.
💡 Hint: Alt + Delete
Ctrl+Y
Paste deleted text
Pastes the most recently deleted text at the cursor position.
💡 Hint: Yank
Ctrl+D
Delete character forward
Deletes the character at the cursor position (same as Delete key).
💡 Hint: Delete
Ctrl+H
Delete character backward
Deletes the character to the left of the cursor (same as BackSpace key).
💡 Hint: H (same as BackSpace)
Ctrl+T
Transpose characters
Swaps the character before the cursor with the character after.
💡 Hint: Transpose
Alt+T
Transpose words
Swaps the word before the cursor with the word after.
💡 Hint: Alt + Transpose
Ctrl+_
Undo
Undoes the last operation.
💡 Hint: Ctrl + _ (underscore)
Ctrl+P
Previous history
Moves to the previous command in history (same as ↑ key).
💡 Hint: Previous
Ctrl+N
Next history
Moves to the next command in history (same as ↓ key).
💡 Hint: Next
Ctrl+R
Reverse search history
Searches command history in reverse. You can search by typing partial commands.
💡 Hint: Reverse search
Ctrl+S
Forward search history
Searches command history forward (may be disabled by default).
💡 Hint: Search forward
Ctrl+L
Clear screen
Clears the terminal screen (keeps current command line).
💡 Hint: cLear
Ctrl+C
Interrupt command
Forcefully terminates the currently running command.
💡 Hint: Cancel
Ctrl+Z
Suspend job
Suspends the current job to the background.
💡 Hint: Zzz... (suspend)
Ctrl+D
End of file/Logout
Exits the shell when on empty line. Deletes character at cursor when typing.
💡 Hint: Done
Tab
Tab completion
Auto-completes partially typed commands or filenames. Press Tab again to show all candidates if multiple exist.
💡 Hint: Tab
Ctrl+[
Escape
Same as ESC key. Used for switching to vi mode, etc.
💡 Hint: Ctrl + [ (ESC alternative)
Ctrl+J
Enter
Same as Enter key. Executes the command.
💡 Hint: Ctrl + J (Enter alternative)
Ctrl+G
Cancel search
Cancels history search or other operations.
💡 Hint: Give up
Ctrl+V
Quoted insert
Inserts the next special character literally (without escaping).
💡 Hint: Verbatim