Linux Keyboard Shortcuts

Ubuntu and GNOME: desktop, terminal and screenshots

No database: AIMRAN doesn't store your files, text or results

Shortcuts for GNOME (Ubuntu, Fedora) and the terminal. Win = the Super key (the Windows key).

Basics

Action
Copy the selectionCtrl + C
Cut the selectionCtrl + X
PasteCtrl + V
UndoCtrl + Z
Redo (Depends on the app)Ctrl + Shift + Z or Ctrl + Y
Select allCtrl + A
FindCtrl + F
SaveCtrl + S
Close the window or tabCtrl + W
Quit the appCtrl + Q
Close the active windowAlt + F4
Type a Unicode character by its code (Then the hex code and Enter)Ctrl + Shift + U

GNOME desktop

Action
Open the Activities overview (KDE: opens the application launcher)Win
Show all applicationsWin + A
Switch between open appsAlt + Tab or Win + Tab
Switch between windows of the same appAlt + ` or Win + `
Run a command (KDE: Alt+Space opens KRunner)Alt + F2
Lock the screenWin + L
Switch workspaceWin + PgUp or Win + PgDn or Ctrl + Alt + ← or Ctrl + Alt + →
Move the window to another workspaceWin + Shift + PgUp or Win + Shift + PgDn
Go to the first or last workspaceWin + Home or Win + End
Maximise the windowWin + ↑
Restore the window sizeWin + ↓
Snap the window to the left or rightWin + ← or Win + →
Move the window to another monitorWin + Shift + ← or Win + Shift + →
Hide (minimise) the windowWin + H
Show notifications and calendarWin + V or Win + M
Open Quick SettingsWin + S
Open a dash app by its positionWin + 1 or Win + 9
Open the window menu (In KDE it opens KRunner)Alt + Space
Move the window with the keyboardAlt + F7
Resize the window with the keyboardAlt + F8
Switch input source (keyboard language)Win + Space

Screenshots

Action
Open the screenshot tool (GNOME 42 or later)PrtSc
Capture the entire screen directlyShift + PrtSc
Capture the active windowAlt + PrtSc
Start or stop screen recordingCtrl + Alt + Shift + R

Terminal

Action
Open a terminal (Ubuntu; not assigned by default on Fedora)Ctrl + Alt + T
Copy in the terminalCtrl + Shift + C
Paste in the terminalCtrl + Shift + V
Open a new tabCtrl + Shift + T
Open a new windowCtrl + Shift + N
Close the tabCtrl + Shift + W
Switch tabsCtrl + PgUp or Ctrl + PgDn
Search the terminal outputCtrl + Shift + F
Interrupt the running commandCtrl + C
Suspend the process (resume it with fg)Ctrl + Z
Exit the shell session (end of input)Ctrl + D
Clear the screenCtrl + L
Search the command historyCtrl + R
Cycle through the command history↑ or ↓
Autocomplete commands and paths (Press twice to see options)Tab
Go to the start or end of the lineCtrl + A or Ctrl + E
Move the cursor word by wordAlt + B or Alt + F
Delete to the start of the lineCtrl + U
Delete to the end of the lineCtrl + K
Delete the previous wordCtrl + W
Paste the last text deleted with Ctrl+U/K/WCtrl + Y
Insert the last argument of the previous commandAlt + .

Files (Nautilus)

Action
Show or hide hidden filesCtrl + H
Type a pathCtrl + L
RenameF2
Create a new folderCtrl + Shift + N
Open a new tabCtrl + T
Go back / forwardAlt + ← or Alt + →
Go up to the parent folderAlt + ↑
Go to the Home folderAlt + Home
View propertiesCtrl + I
Move to the BinDel
Delete permanentlyShift + Del
Show or hide the sidebarF9
Preview the file (Requires the Sushi package)Space

System and accessibility

Action
Log out (GNOME; shows the log-out dialogue)Ctrl + Alt + Del
Switch to a text console (TTY)Ctrl + Alt + F3 or Ctrl + Alt + F6
Return to the graphical session (Depends on the distribution)Ctrl + Alt + F1 or Ctrl + Alt + F2
Turn Zoom (magnifier) on or offWin + Alt + 8
Turn the Orca screen reader on or offWin + Alt + S

What is Linux Keyboard Shortcuts?

On Linux the keyboard is almost everything. In Ubuntu, Ctrl + Alt + T opens the terminal, the Super key shows the Activities overview and Super + L locks your session; in the terminal, Ctrl + R searches your command history.

This cheat sheet brings together the GNOME desktop shortcuts (the one in Ubuntu and Fedora) and the terminal and Bash shortcuts, grouped by section. Search for an action, save your favourites and use the detector to check what a combination does.

How to use it

  1. Type what you want to do in the search box, for example “terminal” or “screenshot”.
  2. Tap the star on the shortcuts you use most to keep them handy in “My favourites”.
  3. Press a key combination in the detector and we'll highlight what it does.
  4. Check the terminal section for the Bash shortcuts, which work on almost any distribution.

Advantages

Use cases

Technical details

The list is based on GNOME 42 and later (Ubuntu 22.04 onwards, Fedora Workstation, Debian with GNOME) and on Bash's line-editing shortcuts (readline), which also work in most terminals running Zsh. Super is the key with the Windows logo and PrtSc the Print Screen key. On a UK keyboard the pipe | is Shift + \ (the key left of Z) and the tilde ~ is Shift + # (next to Enter); on a US keyboard they're Shift + \ and Shift + `. KDE Plasma, Xfce and other desktops partly use different combinations, and any shortcut can be changed in Settings > Keyboard.

Frequently asked questions

How do I open the terminal in Ubuntu with the keyboard?

Press Ctrl + Alt + T. If that doesn't work on your distribution, press Super, type “terminal” and press Enter.

How do I copy and paste in the Linux terminal?

Use Ctrl + Shift + C to copy and Ctrl + Shift + V to paste, because Ctrl + C in the terminal stops the running command.

How do I take a screenshot in Ubuntu?

Press PrtSc to open the GNOME screenshot tool and choose an area, a window or the full screen. Screenshots are saved in Pictures > Screenshots.

How do I search for a previous command in the terminal?

Press Ctrl + R and type part of the command; press Ctrl + R again to see older matches.

How do I switch workspaces in GNOME?

Use Super + PgUp and Super + PgDn, or Ctrl + Alt + left or right arrow in recent versions.

Blog guides

Related tools

See all Shortcuts tools