Linux Terminal Keyboard Shortcut

參考:http://community.linuxmint.com/tutorial/view/244
Keyboard Shortcuts


Enter
Run the command


Up Arrow Show the previous command


Ctrl + R
Allows you to type a part of the command you're looking for and finds it


Ctrl + Z
Stops the current command, resume with fg in the foreground or bg in the background


Ctrl + C
Halts the current command, cancel the current operation and/or start with a fresh new line


Ctrl + LClear the screen


command | less  Allows the scrolling of the bash command window using Shift + Up Arrow and Shift + Down Arrow


!!Repeats the last command


command  !$ Repeats the last argument of the previous command


Esc + . (a period)Insert the last argument of the previous command on the fly, which enables you to edit it before executing the command


Ctrl + A
Return to the start of the command you're typing


Ctrl + E 
Go to the end of the command you're typing


Ctrl + U
Cut everything before the cursor to a special clipboard, erases the whole line


Ctrl + KCut everything after the cursor to a special clipboard


Ctrl + YPaste from the special clipboard that Ctrl + U and Ctrl + K save their data to


Ctrl + T Swap the two characters before the cursor (you can actually use this to transport a character from the left to the right, try it!)


Ctrl + WDelete the word / argument left of the cursor in the current line


Ctrl + D Log out of current session, similar to exit


張貼留言

這個網誌中的熱門文章

Unions 在C語言的簡單介紹

解釋scope.$apply用來做什麼? -- AngularJS

JavaScript的Timer用法