How to create txt file under linux

王林
Release: 2020-10-20 10:21:31
Original
30752 people have browsed it

How to create a txt file under Linux: You can use the touch command to create a txt file, such as [touch qwe.txt], which means creating a file named qwe.txt.

How to create txt file under linux

Specific method:

(Recommended tutorial: linux video tutorial)

1. touch qwe.txt (file name)

Create file akk.txt file

2, vi akk.txt

vi is the command to enter the vim editor, which means editing in vim Edit the qwe.txt file in the browser

3. i

i means insert is the input mode. After entering i, you can start editing the txt file

4. esc

Exit editing mode

5. :wq

Save and exit (Note: You need to add a space after the colon, otherwise Linux will not recognize it)

Related recommended tutorials: linux tutorial

The above is the detailed content of How to create txt file under 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