vi保存和退出
来源:互联网 发布:netfits云墙 mac 编辑:程序博客网 时间:2024/05/18 02:11
You can quit working on a file at any time, save your edits, and return to the Unix
prompt. The vi command to quit and save edits is ZZ. Note that ZZ is capitalized.
Let’s assume that you do create a file called practice to practice vi commands, and
that you type in six lines of text. To save the file, first check that you are in command
Give the write and save command, ZZ. Your file is saved as a regular Unix file.lsch01 ch02 practice
Listing the files in the directory shows the new file practice that you created.
prompt. The vi command to quit and save edits is ZZ. Note that ZZ is capitalized.
Let’s assume that you do create a file called practice to practice vi commands, and
that you type in six lines of text. To save the file, first check that you are in command
mode by pressing ESC , and then enter ZZ.
KeystrokesResultsZZ "practice" [New file] 6 lines, 320 characters
Give the write and save command, ZZ. Your file is saved as a regular Unix file.lsch01 ch02 practice
Listing the files in the directory shows the new file practice that you created.
You can also save your edits with ex commands. Type :w to save (write) your file but
not quit vi; type :q to quit if you haven’t made any edits; and type :wq to both save
your edits and quit. (:wq is equivalent to ZZ.)
0 0
- vi保存和退出
- linux vi 保存和退出命令
- 【引用】vi 保存退出
- 保存退出vi编辑
- vi保存退出
- 保存退出vi编辑
- vi文件保存退出命令":wq"和":x"的区别
- vi文件保存退出命令":wq"和":x"的区别
- vi文件保存退出命令":wq"和":x"的区别
- 保存工作并退出 vi
- linux vi退出保存命令
- linux vi保存退出命令
- linux vi 保存退出命令
- 怎么保存退出vi编辑
- linux vi保存退出命令
- vi 怎么 保存, 退出编辑
- vi的保存退出指令
- linux vi保存退出命令
- struts2和spring整合时,报异常
- Ubuntu安装nodeJS
- Discuz3.2 1225升级之后无法登陆UC的解决方案
- 2015:小米与反小米者的决战之年
- Java EE----struts2开发入门
- vi保存和退出
- Ruby自学该怎么看书?
- MD5算法使用心得
- mongoDB主从复制配置
- 小米路由器mini 安装openWrt+更新源+挂载U盘+安装python
- 头文件卫士
- 谷歌相中的怪咖:Magic Leap创始人有何不同
- map中无法使用TCHAR*作为key的解决方法
- [FFMPEG-0]年度总结和FFMPEG简介