Essential Shortcuts for Linux Terminal 2024 💥
DevOps Descent

DevOps Descent @devops_descent

About: 🚀 DevOps and Cloud Enthusiast | Cloud and DevOps Engineer

Location:
India
Joined:
Oct 6, 2024

Essential Shortcuts for Linux Terminal 2024 💥

Publish Date: Nov 11 '24
88 11

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

Comments 11 total

  • David J Eddy
    David J EddyNov 12, 2024

    Super helpful, earned my YT sub.

  • Alfredo Bello
    Alfredo BelloNov 12, 2024

    subscribed, thanks!

  • luis ga murillo
    luis ga murilloNov 12, 2024

    Todos muy lindos pero ninguno para abrir la terminal?

    • DevOps Descent
      DevOps DescentNov 12, 2024

      Los atajos son para quienes saben cómo usar Linux.😄

  • Gary Huber
    Gary HuberNov 14, 2024

    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!

    • DevOps Descent
      DevOps DescentNov 14, 2024

      Well, I hope these will make help you somewhere 🧘

    • Rando DevGuy
      Rando DevGuyNov 15, 2024

      They are emacs keybindings. In bash, they are active when the environment variableEDITOR=emacs or FCEDIT=emacs, or set -o emacs has been run. There is also a set of vi compatible keybindings, used when set -o vi has been run.
      See "man bash" then search for "Readline Key Bindings".

  • DdivyaSharma
    DdivyaSharmaNov 15, 2024

    Thanks for this! I’ll try freezing the terminal before leaving my desk so no one can show their creativity on it 😆

Add comment