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