Here are few short-cuts to enhance your command line skills:
To open the default editor:
Ctrl-x Ctrl-e
To execute the last command again
$ !!
To use the last string of command:
$ !$ # (or) Alt+.(dot)
To move
$ Ctrl-f # -> Forward one character.
$ Ctrl-b # -> Backwards one character.
$ Ctrl-a # —> Move to the beginning of the line.
$ Ctrl-e # —> Move to the end of the line.
History command displays the commands you entered recently. You needn’t enter the commands again and again or keep pressing arrow key to find your mile long command, you can search in reverse.
Ctrl-r
Incremental reverse search.
Alt-p
For non-Incremental reverse search type ! and few characters of the command;
![chars]
Shift-Page up
Shift-Page Down
Ctrl + Alt + Del
[Note: By /etc/inittab, you can change the behaviour to shutdown.]
For next X-Server resolution
Shift-Alt-+
To cut text is know as “killing”. To paste is known as “yanking”, these are emacs terms, which now sticks with bash and other shells too.
Ctrl-k
Alt-d
Alt DEL
Alt+b
.Ctrl-w
Alt-DEL
because the word boundaries differ.Ctrl-y
Site design and logo and content © fossix.org