1、进入文件:Vim 文件名,今天小编就来说说关于linux怎么修改文件格式?下面更多详细答案一起来看看吧!
![linux怎么修改文件格式(linux怎么修改文件内容)](http://img.studyofnet.com/upimg/429208374.jpg)
linux怎么修改文件格式
修改linux文件内容的方法1、进入文件:Vim 文件名
vim /test/vi.test
Having knowledge 11 kes having pregnant ,
it takes times to be awareness.
Mom said you'd better not miss two things,
the 1ast bus. to home and the person who 1oves you deeply .
A good 1ove is you find the wor1d for a man;
a bad 1ove is you abandon the wor1d for a man.
~
~
~
''/test/vi. txt" 6L,265C
刚打开文件时 Vim 处于命令模式,此时文件的下方会显示文件的一些信息,包括文件的总行数和字符数,以及当前光标所在的位置等
2、查找待修改内容的位置
(1)shift ":",使文件变成可查询状态
(2)输入 /查询内容 (eg 查询Directory参数,即 /Directory)
3、找到位置后修改:按键盘 i 键 即变成可编辑状态
4、修改文件内容后,按ESC键退出编辑状态
5、保存修改:
wq!
以上就是怎么修改linux文件内容的详细内容,更多请关注1818ip.com其它相关文章!
,