vi command is used to edit text content. It is the most commonly used text editing tool in the character interface of the
linux system. It can edit any
ASCII format file, including operations such as create, find, replace, modify, delete, copy, and paste. It is very powerful.
Syntax format: vi [parameter] file
# 打开文件vi test.txt # 打开文件，并从第10行开始编辑，也就是将光标定位在第10行vi +10 test.txt
In addition, in the
ubuntu system, if
sudo apt-get install vim is executed, then
vim are the same thing
For more usage, please refer to the previous blog post https://xugaoxiang.com/2019/12/04/vim-basic/
This article is reprinted from https://xugaoxiang.com/2022/07/28/linux-cmds-91-vi/
This site is for inclusion only, and the copyright belongs to the original author.