Linux is very flexible, but the amount of power it puts at your disposal can sometimes be overwhelming. These quick tricks for your Linux desktop will give you something you can put to use immediately.
(1) Middle Click to Paste
On Linux, you basically have two separate clipboards – there’s the traditional clipboard you can use with the Cut, Copy, and Paste operations (or the Ctrl+X, Ctrl+C, and Ctrl-V keyboard shortcuts). There’s also another sort of clipboard – when you highlight some text with your mouse, this text is copied to a special buffer. When you middle click in a text entry area, a copy of the text you highlighted is pasted into the text entry field.
(2) Quickly Run Commands
If you want to run a command without pulling up a terminal, use the Alt+F2 keyboard shortcut to reveal a Run dialog. This works in the majority of desktop environments including Ubuntu’s Unity, GNOME, and KDE. Type your command into the Run dialog and press Enter to run it.
This is different from pressing the Windows (or “Super”) key and typing the name of a program, which searches for and launches graphical applications.
(3) Switch Between Virtual Consoles
Linux distributions generally provide you with multiple virtual consoles. One of these consoles runs your X server – the graphical desktop environment – while the other ones run traditional text consoles. You can switch between the virtual consoles by pressing the Ctrl+Alt+F# keys – for example, Ctrl+Alt+F1 will take you to the first virtual console. Ctrl+Alt+F7 generally takes you back to the console with the graphical desktop, although this can vary from distribution to distribution.
(4) Search for Menu Items (In Unity on Ubuntu)
Using the HUD (heads-up-display) in Ubuntu’s Unity desktop, you can quickly search for and activate menu items with only your keyboard. Press Alt and type the name of the menu item you want to activate – for example, if you’re using Firefox and want menu items related to bookmarks, press the Alt key and type bookmark. Use the arrow keys and Enter key to activate a menu item.
The HUD was introduced in Ubuntu 12.04.
(5) Quickly Open a Terminal & Other Keyboard Shortcuts
If you’re a Linux user, there’s a good chance you regularly use terminals. To quickly open a terminal on Ubuntu’s Unity or GNOME, press Ctrl+Alt+T.
You can customize this keyboard shortcut, view the default keyboard shortcuts, and create custom keyboard shortcuts in your desktop environment’s Keyboard configuration window. In many desktop environments, you can even create a custom keyboard shortcut that executes a custom command or script when pressed.
(6) Use Workspaces
Workspaces allow you to organize your open windows onto different desktops. Linux desktop environments include extensive support for workspaces — there are a number of ways you can switch between workspaces and move windows between them:
- Click the Workspaces button or applet on your panel to switch between workspaces or view an overview of them. From here, you can often drag and drop windows between workspaces.
- Right-click a window’s title bar and use the Move to Workspace option to move the window to another workspace.
- Press Ctrl+Alt and an arrow key to switch between workspaces.
- Press Ctrl+Alt+Shift and an arrow key to move a window between workspaces. (These keyboard shortcuts are also customizable.)