Friday 24 May 2013

Command ShortCuts




==================================
Linux command line ShortCuts
==================================
Ctrl+l
-clear the terminal
-same as clear command
----------------------------------
Ctrl+c
-kill the current process (if command is executed)
-cancel command (if command is not executed)
----------------------------------
Ctrl+z
-send the current process into background
-use fg command to bring back the background process
----------------------------------
Ctrl+d
-log out if pressed at the beginning of an empty line
----------------------------------
Ctrl+r
-find the last command that contained the letters we type.
----------------------------------
Ctrl+s
-suspends the output
----------------------------------
Ctrl+q
-resume output
----------------------------------
Shift+pageUp
-scroll terminal output up
----------------------------------
Shift+pageDown
-scroll terminal output down
----------------------------------
Ctrl+u
-delete from cursor position to beginning of line
----------------------------------
Ctrl+k
-delete from cursor position to the end of line.
----------------------------------
Esc+t
-Swap words between the cursor position
----------------------------------
Ctrl+t
-swap characters 
----------------------------------
Ctrl+w
-Delete the word before the cursor.
----------------------------------
Ctrl+a [or Home]
-move cursor to beginning of line
----------------------------------
Ctrl+e [or End]
-move cursor to end of line
----------------------------------
Alt+.
-recall last argument from the previous command
----------------------------------
Tab
-auto completes command/files/folder names
----------------------------------
UpArrow/DownArrow
-move into the command history
----------------------------------