Archive for 十二月, 2005

BASH Technics

Posted in [Linux] on 十二月 3, 2005 by maximliu
Using EMACS style of editting command line:

ctrl-a Move cursor to beginning of line
ctrl-e Move cursor to end of line
meta-b Move cursor back one word
meta-f Move cursor forward one word
ctrl-w Cut the last word
ctrl-u Cut everything before the cursor 
ctrl-k Cut everything after the cursor
ctrl-y Paste the last thing to be cut
ctrl-_ Undo

——————————

  •  Flip the Last Two Characters      ctrl+t
  •  Lists Using { and }                     
    $ touch {temp1,temp2,temp3,temp4}
  • reverse
    searching                         
    ctrl+r