10 Linux Shortcuts You Can’t Live Without

1. Tab

 
The most handy shortcut and time saver for the linux command line. This actually makes navigating directories faster in the CLI than the traditional GUI browser. Simply start typing the command, filename, or directory and hit tab. Bash will automatically complete what you are typing. It even works at the lilo prompt and in some X applications.

2. Ctrl + c

 
Stop that program dead in its tracks. This is the command line version of end task.

3. Ctrl + z

 
Send the current process to background. This is useful if you have a program running, and you need the terminal for awhile but don’t want to exit the program completely.

Type the command fg to get the process back.

4. Ctrl + d

 
Log out from the current terminal. If you use this in an X terminal emulator such as xterm it will usually close it after logging out.

5. Ctrl + u

 
Erase the current line. I use this one all the time when I type the wrong command in.

6. Ctrl + Alt + F1, (F1-F6)

 
Switch to the first virtual terminal. In Linux, you can have several virtual terminals at the same time. The default is 6. (Ctrl + Alt + F7 to get back to X)

7. Ctrl + l (lowercase L)

 
Clear the terminal.

8. Ctrl + Alt + Backspace

 
Kill the X server. Use this if X crashes and you can’t exit it normally. If you’ve configured GDM to start automatically at bootup, this restarts the server and throws you back to the graphical login screen.

9. Ctrl + a

 
Move the cursor to the beginning of the current line. Usefull for those times you navigated all the way through 20 directories and forgot to add ‘cp’ to the beginning. Use this instead of the arrow keys.

10. Ctrl + e

 
Last but not least get that cursor back to the end of the line.



4 Responses to "10 Linux Shortcuts You Can't Live Without"
  1. [...] top 10 Linux shortcuts everyone else is using and you should too!read more | digg [...]

  2. Jade Robbins on September 21st, 2007

    Ahhh yes, these all are SO handy. I recently just bought a mac and it’s keyboard un-friendlyness is starting to anger me more and more. Linux (both terminal and GUI (well gnome that is)) are so keyboard friendly i hardly use the mouse.

  3. Use VI Functions in the Command Line on December 12th, 2007

    [...] the line type ‘dd’. to delete to the end of the line type ‘d$’. There are shortcuts for the command line without using VI but I find it easier to learn one set of commands and use [...]

  4. [...] will give you the same result picture above. Then save the file and reload your terminal (Use the Linux shortcut ctrl-d and relogin or click your terminal [...]

Leave a reply