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

Two methods of opening txt File in linux system

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

Share

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

Method 1: use Vim text editor

Enter [vi file name. Txt] in the terminal program. The "vi" section of the command selects the "Vim" text editor to open and edit the file. Replace the "file name" in the command with the target file name.

For example: the file name is "tamins", please enter vi tamins.txt and press Enter.

When you close the file, enter: Q in the terminal and press enter. This exits the Vim program and returns to the terminal's main interface.

Method 2: use the cat command

After opening the terminal program, directly use the cat command to view the contents of the file sample. Just type [cat sample.txt] at the prompt and press Enter.

The function of the cat command is to display the full contents of the file starting from the first line.

As shown in the figure:

These are the details of how to open a text file in the linux system. Please pay more attention to other related articles!

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