用vi修改好文件后,发现文件对你来说,是只读权限的,可以使用下面的命令进行强制保存该文件。 :w !sudo tee % from:http://blog.chinaunix.net/uid-25305993-id-125529.html