VI 編輯器(Linux)

vi <file> :新建文件,進入vi編輯器界面。需要按i進入insert模式,按Esc退出。

  • ZZ (Note: capitals) - Save and exit
  • :q! - discard all changes, since the last save, and exit
  • :w - save file but don't exit
  • :wq - again, save and exit
  • :x -保存並退出
  • :q - 當未對文件進行修改時,退出quit
chmod number file_name:改變file_name的權限,number爲555是隻讀,755是可以讀寫執行

發佈了45 篇原創文章 · 獲贊 18 · 訪問量 14萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章