光。

2013年10月7日 星期一

vim以root身份存檔(save as root)

 
 
:w !sudo tee %

http://stackoverflow.com/questions/2600783/how-does-the-vim-write-with-sudo-trick-work

http://www.cyberciti.biz/faq/vim-vi-text-editor-save-file-without-root-permission/
張貼者: 光 於 下午6:29
以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook分享到 Pinterest
標籤: vim

沒有留言:

張貼留言

較新的文章 較舊的文章 首頁
訂閱: 張貼留言 (Atom)

追蹤者

網誌存檔

  • ►  2020 (1)
    • ►  5月 (1)
  • ▼  2013 (1)
    • ▼  10月 (1)
      • vim以root身份存檔(save as root)
  • ►  2011 (2)
    • ►  9月 (1)
    • ►  8月 (1)

關於我自己

光
檢視我的完整簡介
簡單主題. 技術提供:Blogger.