Home > Article > Operation and Maintenance > How to create txt file under linux
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.
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!