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 selection | Ctrl + C |
| Cut the selection | Ctrl + X |
| Paste | Ctrl + V |
| Undo | Ctrl + Z |
| Redo (Depends on the app) | Ctrl + Shift + Z or Ctrl + Y |
| Select all | Ctrl + A |
| Find | Ctrl + F |
| Save | Ctrl + S |
| Close the window or tab | Ctrl + W |
| Quit the app | Ctrl + Q |
| Close the active window | Alt + 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 applications | Win + A |
| Switch between open apps | Alt + Tab or Win + Tab |
| Switch between windows of the same app | Alt + ` or Win + ` |
| Run a command (KDE: Alt+Space opens KRunner) | Alt + F2 |
| Lock the screen | Win + L |
| Switch workspace | Win + PgUp or Win + PgDn or Ctrl + Alt + ← or Ctrl + Alt + → |
| Move the window to another workspace | Win + Shift + PgUp or Win + Shift + PgDn |
| Go to the first or last workspace | Win + Home or Win + End |
| Maximise the window | Win + ↑ |
| Restore the window size | Win + ↓ |
| Snap the window to the left or right | Win + ← or Win + → |
| Move the window to another monitor | Win + Shift + ← or Win + Shift + → |
| Hide (minimise) the window | Win + H |
| Show notifications and calendar | Win + V or Win + M |
| Open Quick Settings | Win + S |
| Open a dash app by its position | Win + 1 or Win + 9 |
| Open the window menu (In KDE it opens KRunner) | Alt + Space |
| Move the window with the keyboard | Alt + F7 |
| Resize the window with the keyboard | Alt + F8 |
| Switch input source (keyboard language) | Win + Space |
Screenshots
| Action | |
|---|---|
| Open the screenshot tool (GNOME 42 or later) | PrtSc |
| Capture the entire screen directly | Shift + PrtSc |
| Capture the active window | Alt + PrtSc |
| Start or stop screen recording | Ctrl + Alt + Shift + R |
Terminal
| Action | |
|---|---|
| Open a terminal (Ubuntu; not assigned by default on Fedora) | Ctrl + Alt + T |
| Copy in the terminal | Ctrl + Shift + C |
| Paste in the terminal | Ctrl + Shift + V |
| Open a new tab | Ctrl + Shift + T |
| Open a new window | Ctrl + Shift + N |
| Close the tab | Ctrl + Shift + W |
| Switch tabs | Ctrl + PgUp or Ctrl + PgDn |
| Search the terminal output | Ctrl + Shift + F |
| Interrupt the running command | Ctrl + C |
| Suspend the process (resume it with fg) | Ctrl + Z |
| Exit the shell session (end of input) | Ctrl + D |
| Clear the screen | Ctrl + L |
| Search the command history | Ctrl + 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 line | Ctrl + A or Ctrl + E |
| Move the cursor word by word | Alt + B or Alt + F |
| Delete to the start of the line | Ctrl + U |
| Delete to the end of the line | Ctrl + K |
| Delete the previous word | Ctrl + W |
| Paste the last text deleted with Ctrl+U/K/W | Ctrl + Y |
| Insert the last argument of the previous command | Alt + . |
Files (Nautilus)
| Action | |
|---|---|
| Show or hide hidden files | Ctrl + H |
| Type a path | Ctrl + L |
| Rename | F2 |
| Create a new folder | Ctrl + Shift + N |
| Open a new tab | Ctrl + T |
| Go back / forward | Alt + ← or Alt + → |
| Go up to the parent folder | Alt + ↑ |
| Go to the Home folder | Alt + Home |
| View properties | Ctrl + I |
| Move to the Bin | Del |
| Delete permanently | Shift + Del |
| Show or hide the sidebar | F9 |
| 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 off | Win + Alt + 8 |
| Turn the Orca screen reader on or off | Win + 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
- Type what you want to do in the search box, for example “terminal” or “screenshot”.
- Tap the star on the shortcuts you use most to keep them handy in “My favourites”.
- Press a key combination in the detector and we'll highlight what it does.
- Check the terminal section for the Bash shortcuts, which work on almost any distribution.
Advantages
- GNOME desktop and terminal shortcuts on a single page.
- Valid for Ubuntu, Fedora, Debian and other distributions running GNOME.
- Favourites saved in your browser, no account needed.
- Key detector to check every combination.
Use cases
- Getting started with Ubuntu after years on Windows.
- Working faster in the terminal with Bash shortcuts.
- Moving between GNOME workspaces without a mouse.
- Keeping a reference handy for computing classes or labs.
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
- Shortcuts on Windows, Mac and Linux · The most used shortcuts, compared across all three systems
- Chromebook Keyboard Shortcuts · ChromeOS: windows, screenshots, system and accessibility
- Windows Keyboard Shortcuts · Windows 11 and 10: windows, screenshots, desktops and more
- Firefox Shortcuts · Tabs, private browsing, Reader View and tools
- Google Chrome Shortcuts · Tabs, address bar, zoom and tools
- Mac Keyboard Shortcuts · macOS: Finder, screenshots, Spotlight, text and windows