2015年2月24日 星期二

vi

To Start vi


*vi filenameedit filename starting at line 1
vi -r filenamerecover filename that was being edited when system crashed



To Exit vi

whenever a colon (:) is typed.

*:x<Return>quit vi, writing out modified file to file named in original invocation
:wq<Return>quit vi, writing out modified file to file named in original invocation
:q<Return>quit (or exit) vi
*:q!<Return>quit vi even though latest changes have not been saved for this vi call


























沒有留言:

張貼留言