Skip to content

Instantly share code, notes, and snippets.

@rubenhortas
Created September 20, 2025 21:08
Show Gist options
  • Select an option

  • Save rubenhortas/99bc4afa9fea55d9c49ae4ae4b9e996b to your computer and use it in GitHub Desktop.

Select an option

Save rubenhortas/99bc4afa9fea55d9c49ae4ae4b9e996b to your computer and use it in GitHub Desktop.
GNU/Linux console shortcuts cheatsheet

GNU/Linux console shortcuts

Editing

Keys Action
TAB
CTRL+i
Autocomplete
CTRL+u Delete everything from the cursor position to the beginning of the line
CTRL+k Delete everything from the cursor position to the end of the line
CTRL+w Delete the word before the cursor
CTRL+d Delete the character following the cursor
CTRL+h Delete the character before the cursor
CTRL+SHIFT+c Copy
CTRL+SHIFT+v Paste
ALT+d Delete until the end of the word
ALT+BACKSPACE Delete until hte start of the word
ALT+t Switch cuyrrent word with previous word
ALT+l Change the next word to lowercase
ALT+u Change the next word to uppercase
ALT+. Show the last word of the last used command

History

Keys Action
CTRL+r Search through command history for commands that match our search patterns

CTRL+p
Previous command

CTRL+n
Next command

Navigation

Keys Action
CTRL+a Move the cursor to the beginning of the current line
CTRL+e Move the cursor to the end of the current line
CTRL+b Jump backward one character
CTRL+f Jump forward one character
CTRL+← Jump at the beginning of the previous word
CTRL+← Jump at the beginning of the current or previous word
CTRL+→ Jump at the end of the current or next word
ALT+b Jump backward one word
ALT+f Jump forward one word

Tasks and processes

Keys Action
CTRL+s Stop command output to the screen
CTRL+c Send SIGINT signal to the current process
CTRL+d Close STDIN pipe
CTRL+z Send SIGSTP signal to the current process
Suspend the current command and send it to the background
CTRL+q Resume suspended command

Misc

Keys Action
CTRL+l Clear terminal
CTRL++ Zoom in
CTRL+- Zoom out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment