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

The method of opening File in linux Environment

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

Share

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

This article will explain in detail the method of opening files under the linux environment. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Working in a Linux environment, I spend most of my time dealing with terminals. But sometimes you come across situations where you want to view a file, such as an image or an word document (which cannot be viewed directly in the terminal). The usual way to do this is to switch to the gui interface, go to the directory where the file is located, and double-click the file you want to open.

Another way is to enter the specified program directly into shell to open the file, such as: evince xx.pdf to view a pdf file.

Use the command at the terminal to open the file:

1. Enter the command: cd folder-enter the folder, ll-View the files in the folder

2, the method of opening the file: edit the file with the vi file name or vim file name. Press ESC to exit and enter: Q! Enter.

View files with cat file name or less file name

On the linux environment to open files on the method to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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