What other terminal shortcuts exist?

QuestionsQuestions8 SkillsProDec, 20 2025
095

Since you're starting to get comfortable with the terminal, learning these shortcuts will make you feel like a Linux wizard! Here are the most essential shortcuts used in the LabEx terminal:

Instead of using your mouse or the arrow keys repeatedly, try these:

  • Ctrl + A: Move the cursor to the beginning of the line you are typing.
  • Ctrl + E: Move the cursor to the end of the line.
  • Alt + F: Jump forward one word.
  • Alt + B: Jump backward one word.

2. Editing & Deleting

Mistakes happen! These help you fix them fast:

  • Ctrl + U: Delete everything from the cursor back to the start of the line.
  • Ctrl + K: Delete everything from the cursor to the end of the line.
  • Ctrl + W: Delete the word immediately before the cursor.
  • Ctrl + Y: "Paste" (yank) back what you just deleted with Ctrl + U or Ctrl + K.

3. Command History

Don't re-type long commands!

  • Up/Down Arrows: Cycle through your previous commands.
  • Ctrl + R: Search your history. Just press Ctrl + R and start typing a word from a previous command (like "echo"), and it will find it for you!
  • !! (Two exclamation marks): Type this and press Enter to repeat the last command you ran.

4. Process Control

  • Ctrl + C: Cancel/Stop the current running command. If a command is taking too long or seems stuck, use this!
  • Ctrl + D: Exit the current terminal session (the same as typing exit).
  • Tab Key: This is the most important one! It's called Tab Completion. Start typing a command or a filename and hit Tab; Linux will finish typing it for you!

Want to try one? Type a long word like ec, then hit Tab. The terminal will automatically complete it to echo for you

0 Comments

no data
Be the first to share your comment!