Linux common commands-91: vi

The 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

Common parameters:


 # 打开文件vi test.txt # 打开文件,并从第10行开始编辑,也就是将光标定位在第10行vi +10 test.txt

In addition, in the ubuntu system, if sudo apt-get install vim is executed, then vi and vim are the same thing

For more usage, please refer to the previous blog post

This article is reprinted from
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment

Your email address will not be published.