DEV Community

Cover image for Essential Shortcuts for Linux Terminal 2024 πŸ’₯
DevOps Descent
DevOps Descent

Posted on

Essential Shortcuts for Linux Terminal 2024 πŸ’₯

Master key πŸ”‘ Linux πŸ’» shortcuts to streamline your workflow and boost command-line efficiency in 2024. From navigation to process management, these shortcuts enhance productivity and make terminal tasks smoother.

Essential Linux Shortcuts for 2024

Image description

Terminal Navigation Shortcuts πŸ’»

  • Ctrl + A – Move cursor to the beginning of the line.
  • Ctrl + E – Move cursor to the end of the line.
  • Ctrl + U – Cut everything from the cursor to the beginning of the line.
  • Ctrl + K – Cut everything from the cursor to the end of the line.
  • Ctrl + W – Delete the word before the cursor.
  • Alt + B – Move cursor backward by one word.
  • Alt + F – Move cursor forward by one word.
  • Ctrl + Y – Paste the last cut text.

Image description

Command History Shortcuts

  • Ctrl + R – Reverse search in command history.
  • Ctrl + G – Exit from history searching mode.
  • !! – Repeat the last command.
  • !n – Run the command with line number n from history.
  • !string – Run the last command starting with "string."

Image description

Process Management Shortcuts

  • Ctrl + Z – Suspend the current process.
  • Ctrl + C – Kill the current process.
  • Ctrl + D – Logout or end the terminal session.
  • jobs – List all running jobs in the background.
  • fg – Bring a background job to the foreground.
  • bg – Resume a suspended job in the background.

Image description

File and Directory Management Shortcuts

  • Tab – Autocomplete file or directory names.
  • Alt + . – Insert the last argument of the previous command.
  • Ctrl + L – Clear the screen (similar to clear command).
  • !! > file.txt – Repeat the last command and redirect output to a file.

Image description

Text Editing Shortcuts

Image description

  • Ctrl + Left/Right Arrow – Move left or right by one word in the line.
  • Ctrl + Backspace – Delete the previous word.
  • Ctrl + Shift + C – Copy selected text in the terminal.
  • Ctrl + Shift + V – Paste text into the terminal.
  • Shift + Insert – Paste text (alternative for Ctrl + Shift + V).

Image description

Miscellaneous

  • Ctrl + S – Freeze the terminal output.
  • Ctrl + Q – Resume terminal output after freezing.
  • Ctrl + T – Swap the last two characters before the cursor.
  • Ctrl + X, Ctrl + E – Open the current command in the default editor for easier editing.

Support if you found this helpfulπŸ˜‰

No Money πŸ™…πŸ»β€β™€οΈ just Subscribe to me YouTube channel.

Linktree Profile: https://linktr.ee/DevOps_Descent
GitHub: https://github.com/devopsdescent

Top comments (7)

Collapse
 
david_j_eddy profile image
David J Eddy

Super helpful, earned my YT sub.

Collapse
 
devops_descent profile image
DevOps Descent

Thanks πŸ₯°

Collapse
 
skuarch profile image
Alfredo Bello

subscribed, thanks!

Collapse
 
devops_descent profile image
DevOps Descent

Thanks for the support πŸ€—

Collapse
 
luis_gamurillo_e826946fb profile image
luis ga murillo

Todos muy lindos pero ninguno para abrir la terminal?

Collapse
 
devops_descent profile image
DevOps Descent

Los atajos son para quienes saben cΓ³mo usar Linux.πŸ˜„

Collapse
 
gahuber95 profile image
Gary Huber

I've been using Linux for 30 years, and I never knew of these shortcuts, although they appear to be same as in emacs. Thanks!