I recently discover more about the CTRL commands options in Linux. I have to admit, this is something I should have learnt many years ago. I have been using some of these CTRL commands for a while without noticing what they really meant. So, I decided to create this short Linux terminal tutorial for future reference. I hope it helps someone out there!

But, first I needed to brew a great cup of Caturra coffee at home to get inspired. The CTRL commands are divided into four main sections.

Process Management

  • Ctrl+C: Interrupts/kills the current running command or process.
  • Ctrl+Z: Suspends the current process (use fg to resume).
  • Ctrl+D: Sends EOF (End of File), closes the terminal, or logs out.
  • Ctrl+S: Freezes the screen/stops screen output.
  • Ctrl+Q: Unfreezes the screen output.

Terminal Screen Management

  • Ctrl+L: Clears the screen (redraws the screen), similar to the clear command.
  • Ctrl+R: Searches backward in command history.
  • Ctrl+G: Exits history search mode.

Command Line Editing & Navigation

  • Ctrl+A: Moves the cursor to the beginning of the line.
  • Ctrl+E: Moves the cursor to the end of the line.
  • Ctrl+U: Cuts/deletes everything before the cursor.
  • Ctrl+K: Cuts/deletes everything after the cursor.
  • Ctrl+W: Deletes the word before the cursor.
  • Ctrl+Y: Pastes text previously cut using Ctrl+U, K, or W.
  • Ctrl+B: Moves the cursor backward one character.
  • Ctrl+F: Moves the cursor forward one character.

Terminal Specific (GUI/Editor)

  • Ctrl+Shift+C: Copies highlighted text in the terminal.
  • Ctrl+Shift+V: Pastes text into the terminal.
  • Ctrl+Shift+T: Opens a new tab in the terminal.

Leave a comment

Your email address will not be published. Required fields are marked *