Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use linux's vi command text editor

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the use of linux vi command text editor, the article is very detailed, has a certain reference value, interested friends must read it!

The vi command is the most commonly used text editor under the character interface of the linux system.

The vi editor is the standard editor for all linux and is used to edit any ASC Ⅱ text, especially for editing source programs. The iv editor is very powerful and can create, find, replace, delete, copy and paste text.

Enter the vi and file name in the linux system shell prompt to enter the vi editing interface. If the file does not already exist in the system, it is tantamount to creating a new file, and if there is a file in the system, it means editing the file.

Syntax format: vi [parameters]

Common parameters:

Reference example

Use the vi editor:

[root@linuxcool ~] # vi

Edit the specified file:

[root@linuxcool ~] # vi linuxcool.log

Edit the specified file starting at line 6:

[root@linuxcool ~] # vi + 6 linuxcool.log

Opens the specified file in read-only mode:

[root@linuxcool ~] # vi-R linuxcool.log is all the contents of the vi command text editor using linux. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report