Back to DevOps Series
Important Shortcuts:

Important Shortcuts:

1. Move the blinking cursor to the beginning or end of the command line:
  • Beginning: Ctrl + A
  • End: Ctrl + E
notion image
 
2. Move the blinking cursor one word backward or forward:
  • Backward (previous word): Alt + B
  • Forward (next word): Alt + F
notion image
3. Search command history recursively:
  • Ctrl + R → Searches your command history recursively to find previously executed commands.
notion image
 
4. Clear text from the cursor to the end of the line:
  • Shortcut: Ctrl + K
notion image
 
5. Paste (Yank) the last cut text:
  • Shortcut: Ctrl + Y
  • Pastes the text that was last cut (for example, using Ctrl + K or other kill commands).
 
notion image
 
6. Cut the word before the cursor:
  • Shortcut: Ctrl + W
  • Cuts the word immediately before the cursor.
notion image
 
7. Cut all text from the cursor to the beginning of the line:
  • Shortcut: Ctrl + U
  • Cuts all text from the cursor to the beginning of the current line.
notion image
 
8. Delete from the cursor to the end of the current word:
  • Shortcut: Alt + D
  • Deletes all characters from the cursor to the end of the current word.
 
notion image
 
9. Clear the terminal screen:
  • Shortcut: Ctrl + L
  • Command: clear
  • Clears the terminal screen without closing the current session.
 
notion image
 
10. Auto-complete commands and file names:
  • Key: Tab
  • Automatically completes commands, file names, and directory names whenever possible.
 
notion image