Home  >  Article  >  Operation and Maintenance  >  How to create files in linux directory

How to create files in linux directory

coldplay.xixi
coldplay.xixiOriginal
2020-10-22 10:00:4931447browse

Linux method of creating files in a directory: First open the xshell software to connect to the Linux server; then use [mkdir directory name] to create a directory and cd to the directory; then enter the command [touch file name] to create an empty file; finally use [vim file name] to create an empty file and open it for editing.

How to create files in linux directory

How to create files in the directory in Linux:

1. Open the xshell software and connect to the Linux server.

How to create files in linux directory

2. Use [mkdir directory name] to create a directory and cd to the directory.

How to create files in linux directory

#3. Enter the command [touch file name] to create an empty file.

How to create files in linux directory

4. Use [vim file name] to create an empty file and open it for editing.

How to create files in linux directory

5. Enter [ls -l] to view the files in the current directory. You can see the file just created.

How to create files in linux directory

Related free learning recommendations: linux video tutorial

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

Statement:
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