2014年4月17日

[訊真科技技術園地] Unix and Linux shortcut keys

文章摘自  http://www.computerhope.com/ushort.htm

分享實用的shortcuts, example: ctrl + u , ctrl + w 


Keyboard shortcut keys

CTRL+BMoves the cursor backward one character.
CTRL+CCancels the currently running command.
CTRL+DLogs out of the current session.
CTRL+FMoves the cursor forward one character.
CTRL+HErase one character. Similar to pressing backspace.
CTRL+PPaste previous line(s).
CTRL+SStops all output on screen (XOFF).
CTRL+QTurns all output stopped on screen back on (XON).
CTRL+UErases the complete line.
CTRL+WDeletes the last word typed in. For example, if you typed 'mv file1 file2' this shortcut would delete file2.
CTRL+ZCancels current operation, moves back a directory or takes the current operation and moves it to the background. See bg command for additional information about background.

Command line shortcuts

In addition to the below command line shortcuts, it is also helpful to use the alias command that allows you to specify a keyword for frequently used commands or mistakes.
 ~Moves to the user's home directory.
!!Repeats the line last entered at the shell. See history command for previous commands.
!$Repeats the last argument for the command last used. See history command for previous commands.
resetResets the terminal if terminal screen is not displaying correctly.
shutdown -h nowRemotely or locally shuts the system down.