
To help you with that, I have added a one-page PDF. This way you'll use them more often and eventually, it gets added to your muscle memory. You cannot possibly remember the new shortcuts so having the shortcuts in front of you gives the ability to look at it at a quick glance. The best way to learn new keyboard shortcuts is by keeping a cheat sheet pinned to your disk.
#OPEN TERMINAL UBUNTU KEYBOARD SHORTCUT DOWNLOAD#
Download FREE terminal shortcut cheatsheet You can press enter to run the command selected or press Esc to come out of the search with the last search result. If you want to see more commands for the same string, just keep pressing Ctrl + R. Note that the typed string could be anywhere in the command. It will show the last command that matches the string you typed. This keyboard shortcut allows you to perform a search in your command history. You typed some command but cannot remember what it was exactly? Meet Ctrl + R. Bonus shortcut: Ctrl + R to search in command history Many terminals have this shortcut mapped to the PgDn key. If you are viewing previous commands with Ctrl+P, you can use Ctrl+N to navigate back and forth. You can use this shortcut in conjugation with Ctrl+P. In a lot of terminals, the same can be achieved with PgUp key. You can press it repeatedly to keep on going back in the command history. You can use this shortcut to view the previous command.

Comes handy in case you erased wrong text or if you need to use the erased text someplace else. This will paste the erased text that you saw with Ctrl + W, Ctrl + U and Ctrl + K shortcuts. The best way to use it to move the cursor to the next space after the targetted word and then use the Ctrl+W keyboard shortcut. If the cursor is on a word itself, it will erase all letters from the cursor position to the beginning of the word. Using Ctrl+W shortcut, you can erase the word preceding to the cursor position. But what if you just need to delete a single word? Use the Ctrl+W shortcut. You just learned about erasing text till the beginning and the end of the line. The only difference is that instead of the beginning of the line, it erases everything from the current cursor position to the end of the line. This one is similar to the Ctrl+U shortcut. This shortcut erases everything from the current cursor position to the beginning of the line. Typed a wrong command? Instead of using the backspace to discard the current command, use Ctrl+U shortcut in the Linux terminal. Home is equivalent to Ctrl +A and End is equivalent to Ctrl + E. Note: If you have the Home and End keys on your keyboard, you can also use them. Ctrl+A sends the cursor to the beginning of the line whereas Ctrl+E moves the cursor to the end of the line. This shortcut is sort of opposite to Ctrl+A. Do note that you cannot use the mouse to move the cursor to the beginning of the line. Suppose you typed a long command or path in the terminal and you want to go to the beginning of it, using the arrow key to move the cursor will take plenty of time. This shortcut will move the cursor to the beginning of the line. Instead of writing C-L-E-A-R, you can simply use Ctrl+L to clear the terminal. How do you clear your terminal screen? I guess using the clear command. If you are using a terminal directly, the application will be closed immediately.Ĭonsider it equivalent to the ‘exit’ command. If you are using an SSH connection, it will be closed. This keyboard shortcut will log you out of the current terminal. You can see the stopped program in background jobs and even resume to run it using the fg command. This shortcut will suspend a running program and gives you control of the shell. If you want to stop using a program running in the foreground, just press this key combination. This will stop (terminate) a running program immediately.


These are the keys you should press in order to break out of a command or process on a terminal. If you could only remember one shortcut, this would be the chosen one. It will either automatically complete what you were typing or it will show all the possible results for you. Just start typing a command, filename, directory name or even command options and hit the tab key. It will save you so much time in the Linux command line. This is the Linux shortcut you cannot live without. Do note that I have used the capital letters in the keyboard shortcuts but this does NOT mean that you have to press the shift key while using these shortcuts.
