Work faster on gnu/linux command line with this shortcuts.
Posted June 29th, 2009 by andy
Hi all. as a systems administrator or a normal user of gnu/linux, we always want some shortcuts to work quicker on your keyboard.
Here in this article I will show you some of the quick-shortcuts which will help you in your day-to-day work on gnulinux.
I assume you are on command line interface and if you press :
- Ctrl + a or Home key :-- with help of this your cursor will move to beginning of command line.
- Ctrl + e or End :-- Your cursor will move to the end of command line.
- Ctrl + k :-- This shortcut will delete all characters upto end of commandline, from the current position of curser.
- Ctrl + u :-- This will delete whole current line.
- Ctrl + w :-- If you want to delete the word or characters from left to right from the cursor position then use this.
- Tab :-- Tab key on keyboard is very helpful to system admin, as it will autocomplete any command or file/directory name which you are trying to type. This is for if there is only one uinque command or file/direcoty name. If there are more similar command or file/directory names, then you have to type “Tab” key twice, so it will give you all available options.
-
E.g, type only “g” on shell prompt and press Tab key for two times. Check the output, it will ask you “Display all posibilities?
Press N for no. - Up Arrow or Ctrl + p :-- It will do scrolls the commands which you had entered previously.
- Down Arrow or Ctrl + n :-- It will takes you at back to the more recent commands, which you had typed.