發表文章

目前顯示的是 七月, 2014的文章

在Vim過濾不要或要的資訊

在Vim要過濾只想看的資訊可以下
:g/FilterName
FilterName就是你想看的文字

如果要過濾不想看的就可以加個!就好
:g!/FilterName

Linux Terminal Keyboard Shortcut

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

Enter
Run the command

Up ArrowShow 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 spe…