Work faster on gnu/linux command line with this shortcuts.

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 :

  1. Ctrl + a or Home key :-- with help of this your cursor will move to beginning of command line.
  2. Ctrl + e or End :-- Your cursor will move to the end of command line.
  3. Ctrl + k :-- This shortcut will delete all characters upto end of commandline, from the current position of curser.
  4. Ctrl + u :-- This will delete whole current line.
  5. Ctrl + w :-- If you want to delete the word or characters from left to right from the cursor position then use this.
  6. 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.
  7. 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.

  8. Up Arrow or Ctrl + p :-- It will do scrolls the commands which you had entered previously.
  9. Down Arrow or Ctrl + n :-- It will takes you at back to the more recent commands, which you had typed.

Back to top