Profile picture for Admin

Command line could be the mighty tool but printing long command and paths to files get bother fast. In this article we will show you main hotkeys to make it faster.

Expirienced users like command line for it's opportunities to handling tought tasks in couple of lines. But for newbies it seems like hell to typing all those commands and parameters.

The commands below are suitable for *NIX compatible terminals. Working out of the box in Linux and OSX. For using them in Windows cygwin should be installed.

Up / Down

Ctrl+p / Ctrl+n

select previous command from the list.

Left / Right

Ctrl+b / Ctrl+f

move pointer by one symbol left/right.

Ctrl+Left / Ctrl+Right

move between arguments of command on input.

Delete

Ctrl+d

remove symbol left/right from current position.

Home и End

Ctrl+a и Ctrl+e

move to begin/end of input.

Ctrl+u

clear current input.

Ctrl+k

remove symbols from current positoin to the end of input.

Ctrl+w

remove word before current position.

Ctrl+r

search in history of previously entered commands.

Ctrl+j

end up searching on current line.

Ctrl+g

reset search and recover previous line.

Ctrl+y

insert previously deleted command.

Ctrl+_ (Ctrl + Shift + - )

Undo

Ctrl+xx

move between start and current positoins.

Ctrl+l

clear terminal (analogue of clear)

Ctrl+c

cancel operatoin.

Tab

autocomplete input.

Using those commands will improve your working speed. But this is not the only way to improve your speed. You can create own aliases for common tasks. Check another article for it!

 

Add new comment

The content of this field is kept private and will not be shown publicly.
  • No HTML tags allowed.
 d8888b.  .d88888b   d8888888P  dP   dP   .d888888  
`88 88. "' .d8' 88 88 d8' 88
aaad8' `Y88888b. .d8' 88aaa88 88aaaaa88a
`88 `8b .d8' 88 88 88
.88 d8' .8P d8' 88 88 88
d88888P Y88888P Y8888888P dP 88 88

Enter the code depicted in ASCII art style.