240 Linux Keyboard Shortcuts & Terminal Shortcuts (PDF) (2024)

In this post, we’ve compiled a list of Linux keyboard shortcuts to help you work efficiently. The key shortcuts for Linux will help you navigate between windows, edit text, manage files, open apps quickly, and so on. Moreover, we have also listed the keyboard shortcuts for popular Linux distributions like Ubuntu, GNOME, Debian, Linux Mint Cinnamon, Xfce, and LXDE.

Whether you’re a seasoned pro or just getting started, nobody can remember all the keyboard shortcuts for Linux. That’s why, we have created a list of all Linux keyboard shortcuts and attached a PDF that you can download and use for reference. Using these shortcuts, you can boost your productivity, save time, work more efficiently, and impress your colleagues with your lightning-fast skills.

Check out our list of keyboard shortcuts for Windows and macOS as well:

    • 250 Windows 10/11 Keyboard Shortcuts

Basic Linux Keyboard Shortcuts

We’ll start our list of keyboard shortcuts for Linux with a bunch of general shortcuts most of which are common to other operating systems like Windows and macOS as well.

  1. Ctrl + Alt + F1 to F6: Switch to the virtual console.
  2. Ctrl + Alt + F7: Switch to the first graphical terminal.
  3. Ctrl + A: Select all items or text
  4. Ctrl + C: Copy selected text, image, or file to the clipboard.
  5. Ctrl + N: Create a new file in the currently open program.
  6. Ctrl + P: Print the current document.
  7. Ctrl + Q: Quit the application in focus.
  8. Ctrl + S: Save the currently opened file.
  9. Ctrl + V: Paste copied text, image, or some other object from the clipboard.
  10. Ctrl + W: Use this shortcut to close the current file.
  11. Ctrl + X: Cut selected text, image, or file.
  12. Ctrl + Z: Undo the last action.
  13. Ctrl + Alt + D: Minimize all windows and show your desktop. You can repeat it to maximize your windows in the same order.
  14. Ctrl + Alt + L: Locks the screen.
  15. Ctrl + Alt + T: Open a new Terminal window.

Bonus Tip: Linux Shortcut Keys for Shutdown

There is no keyboard shortcut to shut down Linux. However, you can do that by using commands in the Linux Terminal. Launch the Terminal by using Ctrl + Alt +T and execute the Linux shutdown command in the following format.

shutdown [OPTION] [TIME]

Examples:

  • Shut down within a minute: shutdown or shutdown-h
  • Shut down immediately: shutdown -h 0 or shutdown now
  • Restart Linux: shutdown -r
  • Restart the computer immediately: shutdown -r 0 or shutdown now
  • Shut down Linux after 30 minutes: shutdown -h 30 or shutdown -h +30
  • Restart Linux after 15 minutes: shutdown -r 15 or shutdown -r +15
  • Shut down or restart Linux at a given time: shutdown -h 10:30 or shutdown -r 12:45
  • Command Linux to shut down and cut off the power supply: shutdown -P
  • Cancel scheduled shutdown or restart: shutdown -c

Linux Terminal Keyboard Shortcuts

Users of other OSs might do without the command prompt but Linux, being a go-to environment for tech-savvies, can’t be exploited unless you use the Terminal. The following Linux Bash Terminal keyboard shortcuts will help you boost your productivity.

  1. !!: Re-execute the most recently executed command.
  2. !$: Print the previously executed command’s last word.
  3. !^: Use the first argument of the previous command in the current command.
  4. !ping: Execute a recently used command from the bash history that began with the word ‘ping’.
  5. !x: Execute a recently used command that began with ‘x’.
  6. Alt + .: Use the last argument of the previous command.
  7. Alt + <: Go to the first line of the bash history.
  8. Alt + >: Go to the last line of the bash history.
  9. Alt + ?: Display files or folders in the current path.
  10. Alt + B: Move the cursor one word backward.
  11. Alt + Backspace: Delete the last word.
  12. Alt + D: Delete the word after the cursor.
  13. Alt + Delete: Delete the word before the cursor.
  14. Alt + F: Move the cursor one word forward.
  15. Alt + P: Perform a reverse search in the terminal history.
  16. Alt + R: Revert the changes made in a command line.
  17. Alt + T: Swap the current word with the word preceding it.
  18. Alt + C: Capitalize the character under the cursor.
  19. Alt + L: Use lowercase from the current cursor position to the end of the word.
  20. Alt + U: Use uppercase from the current cursor position to the end of the word.
  21. Ctrl + _: Undo your last keyboard action. Repeat this shortcut to undo multiple times.
  22. Ctrl + A: Move the cursor to the beginning of the line.
  23. Ctrl + E: Move the cursor to the end of the line.
  24. Ctrl + B: Move one character backward.
  25. Ctrl + F: Move one character forward.
  26. Ctrl + C: Send SIGINT signal to kill or abort the current process.
  27. Ctrl + D: Close the current terminal window.
  28. Ctrl + G: Exit the history search mode without running a command
  29. Ctrl + H: Remove the last character typed.
  30. Ctrl + I: Autocomplete a command.
  31. Ctrl + J: Start a new command line.
  32. Ctrl + K: Erase everything from the current cursor position to the end of the line.
  33. Ctrl + U: Erase everything from the current cursor position to the beginning of the line.
  34. Ctrl + L: Clear the Terminal screen. This keyboard shortcut is a substitute for the clear command.
  35. Ctrl + M: Works like the Enter key.
  36. Ctrl + P or Up arrow: Display the previous command.
  37. Ctrl + N or Down arrow: Display the next command.
  38. Ctrl + O: Send the command from the search mode to the terminal and execute it.
  39. Ctrl + Q: If the terminal window stops responding, this shortcut will resume the terminal output.
  40. Ctrl + R: Recall the last command matching the string you typed.
  41. Ctrl + S: Pause the terminal output.
  42. Ctrl + T: Swapthe last two characters before the cursor.
  43. Ctrl + W: Delete the command or word preceding the cursor.
  44. Ctrl + XX: Toggle between the beginning of the command line and the current cursor position.
  45. Ctrl + Y: Paste the deleted text on the current cursor position.
  46. Ctrl + Z: Suspend the current command execution and send the current process to the background.
  47. Ctrl + [: Functions as the Escape key.
  48. Esc + T: Swap the last two words before the cursor.
  49. Tab: Autocomplete a command, filename, directory name, and command options.

Download Linux Keyboard Shortcuts PDF

Related posts

Snapchat’s Solar System Planets Order and Meaning Explained

Ubuntu Keyword Shortcuts

Ubuntu is the most popular Linux distribution because it provides unparalleled flexibility and customization options. However, navigating through apps and settings can be time-consuming without proper knowledge of keyboard shortcuts. The following Ubuntu keyword shortcuts will enhance your efficiency.

  1. Alt + `: Switch between different instances of an application.
  2. Alt + Esc: Switch between different applications.
  3. Alt + Tab: Switch between different open windows on the same workspace.
  4. Alt + F1: Switch between the Activities overview and desktop instantly.
  5. Alt + F2: Open the command prompt.
  6. Alt + F4: Close the window in focus.
  7. Alt + F5: Restore a maximized window to its original size.
  8. Alt + F6: Switch between open windows in the same application.
  9. Alt + F7 + Arrow keys: Move the current window to your preferred location on the screen.
  10. Alt + F8 + Arrow keys: Resize the window in focus.
  11. Alt + F10: Maximize and restore the current window. Using this shortcut in the file manager will open the context menu for the current folder.
  12. Alt + PrtSc: Take the screenshot of the window in focus.
  13. Alt + Space: Display the menu for the current window. This shortcut works the same as right-clicking on the window title bar.
  14. Alt + Tab: Switch between open applications.
  15. Ctrl + Alt + Delete: Log out and return to the computer’s login screen.
  16. Ctrl + Alt + T: Open a new Terminal window.
  17. Ctrl + Alt + Tab: Bring the top bar into focus and use the arrow keys to navigate.
  18. Ctrl + Arrow keys: In a list or icon view, move the keyboard focus to another item without deselecting a selected item.
  19. Ctrl + Space: In a list or icon view, select or deselect an item without deselecting other items.
  20. Ctrl + PgUp/PgDn: Switch between tabs to the left or right.
  21. PrtSc: Take a screenshot of the full screen.
  22. Shift + PrtSc: Take a screenshot of a selected area of the screen.
  23. Shift + Ctrl + Alt + R: Record the screen.
  24. Shift+ F10: Display the context menu for the current selection.
  25. Shift + Super + ←/→: Move the current window one monitor to the left or right.
  26. Super: Open Activities overview.
  27. Super + 1 to 9: Press the 1 to 9 number keys while holding Super to launch the app pinned to the Ubuntu Dock in the corresponding number. Pressing ‘0’ launches the 10th app.
  28. Super + A: Show the list of apps.
  29. Super + Arrow Keys: Snap the window in focus to a border.
  30. Super + D: Minimize all open windows instantly to see the desktop.
  31. Super+ F10: Open the application menu on the top bar.
  32. Super + L: Lock the screen.
  33. Super + H: Minimize the window in focus.
  34. Super + PgUp/PgDn: Switch between workspaces without using a mouse.
  35. Shift + Super + PgUp/PgDn: Move the window in focus to another workspace.
  36. Super + Tab: Switch between open windows.
  37. Super + V: View the list of notifications.
  38. Super + Tab: Switch between apps regardless of the workspace.
  39. Super + `: Switch between windows from the same app.
  40. Super + ↑: Maximize the window in focus.
  41. Super + ↓: Restore to the small window.
  42. Super + ←: Maximize a window vertically to the left.
  43. Super + →: Maximize a window vertically to the right.
  44. Tab: Switch between different controls.
  45. Ctrl + Tab: Switch between groups of controls.

If some of the above keyboard shortcuts don’t work for you, go to Settings > Keyboard > Keyboard Shortcuts > Customize Shortcuts and add a custom shortcut.

Download Ubuntu Keyboard Shortcuts PDF

GNOME Keyboard Shortcuts

  1. Alt + Esc: Switch between windows in the current workspace.
  2. Alt +`: Switch between windows of the same program.
  3. Alt + Tab: Cycle between running apps.
  4. Alt + Shift + Tab: Cycle between the running apps in the opposite direction.
  5. Alt + F1: Switch between the Activities and desktop.
  6. Alt + F2: Launch a floating terminal window.
  7. PrtSc: Take a full-screen screenshot.
  8. Alt + PrtSc: Take a screenshot of the current window.
  9. Ctrl + Alt + Arrow keys: Switch between workspaces.
  10. Ctrl + Alt + D: Minimize all the windows to quickly access the desktop.
  11. Ctrl + Alt + Delete: Show the Power menu dialog box.
  12. Ctrl + Alt + Tab: Move the keyboard focus to the top bar. You can use the arrow keys to navigate.
  13. Shift + Super + PgUp/PgDn: Move the window in focus to another workspace.
  14. Shift + Super + ←: Move the current window to the left monitor.
  15. Shift + Super + →: Move the current window to the right monitor.
  16. Super: Show the Activities overview.
  17. Super + A: Show the list of apps.
  18. Super + L: Lock the screen.
  19. Super + PgUp/PgDn: Switch between workspaces.
  20. Super + Tab: Switch between windows.
  21. Super + `: Switch between windows from the same app.
  22. Super + V: View the notification list.

Download GNOME Keyboard Shortcuts PDF

Debian Keyboard Shortcuts

  1. Alt + F1: Show an overview of open windows.
  2. Alt + F2: Launch a floating command prompt window.
  3. Alt + F4: Close the current window.
  4. Alt + F5: Unmaximize the window in focus.
  5. Alt + F7: Select the current window and use the arrow keys to move it.
  6. Alt + F8: Resize the current window and use the arrow keys to resize it.
  7. Alt + F10: Minimize or maximize the current window.
  8. PrtSc: Take a screenshot of the complete screen and save it in the Pictures folder.
  9. Alt + PrtSc: Take a screenshot of the current window and save it in the Pictures folder.
  10. Ctrl + PrtSc: Copy a screenshot of the entire screen to the clipboard.
  11. Ctrl + Alt + PrtSc: Take a screenshot of a window and copy it to the clipboard.
  12. Shift + Ctrl + PrtSc: Take a screenshot of a selected area and copy it to the clipboard.
  13. Shift + PrtSc: Take a screenshot of a selected area and save it in the Pictures folder.
  14. Alt + Space: Show the menu for the current window.
  15. Alt + Tab: Cycle between open applications.
  16. Ctrl + 0: Open a new file.
  17. Ctrl + Alt + Esc: Switch between system controls such as open windows, top bar, desktop, etc.
  18. Ctrl + Alt + Tab: Switch between system controls.
  19. Ctrl + Alt + ↑: Move to the workspace located above.
  20. Ctrl + Alt + ↓: Move to the workspace located below.
  21. Ctrl + Alt + Delete: Log out and show the login screen.
  22. Shift + Super + Home: Move the current window to the first workspace.
  23. Shift + Super + End: Move the current window to the last workspace.
  24. Shift + Super + ←/→: Move the window in focus to the left or right.
  25. Shift + Super + ↑/↓: Move the current window up or down.
  26. Super + A: View all applications.
  27. Super + Home: Switch to the first workspace.
  28. Super+ End: Switch to the last workspace.
  29. Super + L: Lock the screen.
  30. Super + PgUp: Go to the workspace shown above the current workspace.
  31. Super + PgDn: Go to the workspace shown below the current workspace.
  32. Super + S: Open Activities overview.
  33. Super + V: Show the notification list.
  34. Super + Tab: Switch between open applications.

Download Debian Keyboard Shortcuts PDF

Linux Mint Cinnamon Keyboard Shortcuts

  1. Alt + F2: Launch the command prompt in a floating window.
  2. Alt + F4: Close the window in focus.
  3. Alt + F5: Un-max­imize a maximized window.
  4. Alt + F7: Move a window. Use arrow keys to move.
  5. Alt + F8: Resize a window. Use arrow keys to resize.
  6. Alt + F10: Toggle a window’s maximi­zation state.
  7. Alt + PrtSc: Take a screenshot of a window.
  8. Ctrl + A­lt + ­PrtSc: Copy a screenshot of a window to the clipboard.
  9. Ctrl + PrtSc: Copy a screenshot to the clipboard.
  10. Shift + ­Ctr­l + PrtSc: Copy a screenshot of an area to the clipboard.
  11. Shift + ­PrtSc: Take a screenshot of an area and save it to Pictures.
  12. Alt + Space: View the window menu.
  13. Alt + Tab: Switch between running applications.
  14. Ctrl + Alt + ↓: Show all running applications on the selected workspace.
  15. Ctrl + Alt + ↑: View the running applications across all workspaces.
  16. Ctrl + Alt + L: Lock the screen.
  17. Ctrl + A­lt + End: Shut down the system.
  18. Ctrl + A­lt + Esc: Restart the computer.
  19. Ctrl + A­lt + ­Delete: Log out and display the login screen.
  20. Ctrl + Super + Arrow keys: Span the current window to the border.
  21. Ctrl + S­upe­r + ↑: Push snap up.
  22. Ctrl + S­upe­r + ↓: Push snap down.
  23. Ctrl + S­upe­r + ←: Push snap left.
  24. Ctrl + S­upe­r + →: Push snap right.
  25. Ctrl + Alt + T: Open the terminal.
  26. Ctrl + A­lt + ←: Switch to the left workspace.
  27. Ctrl + A­lt + ­→: Switch to the right workspace.
  28. Shift + Alt+ Tab: Cycle between open programs in the opposite direction.
  29. Shift + Ctrl + Alt + ←/→: Move the current window to the left or right workspace.
  30. Shift + ­Ctr­l + Alt + R: Start recording desktop. This requires a restart.
  31. Shift + ­Ctr­l + A­lt + ←: Move a window to the left workspace.
  32. Shift +­ Ctr­l+ A­lt +­ →: Move a window to the right workspace.
  33. Super + D: Minimize all the windows and show the desktop.
  34. Super + ↑/↓: Push a tile up or down.
  35. Super + ­←/→: Push a tile to the left or right.
  36. Super + E: Launch the home folder.
  37. Super + L: Open the Cinnamon Debugger.
  38. Super + ←/→: Push a tile to the left or right.
  39. Super + O: Lock orient­ation.
  40. Super + P: Re-detect display devices.
  41. Super + ­Shi­ft + ←: Move the current window to the left monitor.
  42. Super +­ Shi­ft + ­→: Move the current window to the right monitor.
  43. Super + ­Shi­ft + ↑: Move a window to the up monitor.
  44. Super +­ Shi­ft + ↓: Move a window to the down monitor.
  45. Super + S: Show all desklets.

Go to All Applications > Keyboard > Shortcuts > Add custom shortcut and create a keyboard shortcut of your own on Linux Mint.

Download Linux Mint Keyboard Shortcuts PDF

Xfce Keyboard Shortcuts

  1. Alt + F2: Open the terminal window.
  2. Alt + F4: Close the current window.
  3. Alt + F7: Move the window in focus.
  4. Alt + F8: Resize the current window.
  5. Alt + F9: Hide the window in focus.
  6. Alt + F10: Maximize the current window.
  7. Alt + F11: Toggle fullscreen.
  8. Alt + F12: Toggle above.
  9. Alt + Shift + Tab: Cycle between running programs.
  10. Alt + Space: Open the window menu.
  11. Alt + Tab: Switch between running applications.
  12. Shift + Alt + Tab: Switch to the previous window.
  13. Alt + Shift + PgUp: Move the current window up.
  14. Alt + Shift + PgDn: Move the current window down.
  15. Ctrl + Alt + D: Minimize all the windows and show the desktop.
  16. Ctrl + Alt + Delete: Lock the screen.
  17. Ctrl + Esc: Display the context menu.
  18. Super + P: Access the Xfce display settings.

LXDE Keyboard Shortcuts

  1. Alt + Esc: Hide the current window.
  2. Alt + F4: Close the current window.
  3. Alt + Tab: Cycle between running apps.
  4. Alt + Shift + Tab: Cycle between running apps in the opposite direction.
  5. Ctrl + Alt + Arrow keys: Switch virtual desktops.
  6. Ctrl + Alt + L: Lock the screen.
  7. Ctrl + Alt + T: Launch the terminal window.
  8. F11: Toggle fullscreen on or off.
  9. Shift + Alt + Arrow keys: Move the current window to a virtual desktop.
  10. Super + D: Minimize all open windows to show the desktop.
  11. Super + E: Open file browser.

Working in Linux can be daunting, but shortcuts make tasks much easier. Whether you are new to the Linux operating system or have been using it for years, having an understanding of these keyboard shortcuts can help improve your productivity.

Read Next: 350+ Most Useful Websites on the Internet

240 Linux Keyboard Shortcuts & Terminal Shortcuts (PDF) (2024)
Top Articles
Latest Posts
Article information

Author: Prof. An Powlowski

Last Updated:

Views: 6087

Rating: 4.3 / 5 (64 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Prof. An Powlowski

Birthday: 1992-09-29

Address: Apt. 994 8891 Orval Hill, Brittnyburgh, AZ 41023-0398

Phone: +26417467956738

Job: District Marketing Strategist

Hobby: Embroidery, Bodybuilding, Motor sports, Amateur radio, Wood carving, Whittling, Air sports

Introduction: My name is Prof. An Powlowski, I am a charming, helpful, attractive, good, graceful, thoughtful, vast person who loves writing and wants to share my knowledge and understanding with you.