How to open a file in linux

爱喝马黛茶的安东尼
Release: 2019-12-07 15:41:02
Original
9678 people have browsed it

How to open a file in linux

How to use commands to open text files in Linux (using Vim text editor):

1. Open the terminal. Click on the menu.

How to open a file in linux

#2. Then find the terminal program. The program's icon is a black box with a white ">_" on it. click it. The "Terminal" program can generally be found in the left column of the menu window.

How to open a file in linux

#3. Enter vi filename.txt in the terminal program. The "vi" part of the command selects the "Vim" text editor to open and edit the file. Replace "filename" in the command with the target filename.

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

How to open a file in linux

#4. When closing the file, enter: q in the terminal and press the Enter key. This will exit the Vim program and return to the terminal main interface.

How to open a file in linux

PHP Chinese website has a large number of free Linux introductory tutorials, everyone is welcome to learn!

The above is the detailed content of How to open a file in linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template