Home >Operation and Maintenance >CentOS >How to create files in centos

How to create files in centos

王林
王林Original
2020-03-17 16:36:3111229browse

How to create files in centos

You can use the touch command, and touch can be used to create binary files.

Usage: touch file name, there must be a space between touch and file name.

(Recommended tutorial: centos usage tutorial)

For example, if I want to create a binary file with the file name abc, then the formula in Linux should be written as:

#touch abc

How to create files in centos

After the creation is completed, use the ls command to view the file we created. You can see that the abc file pointed by the red arrow in the picture is the newly created file.

How to create files in centos

Related video tutorial recommendations: linux video tutorial

The above is the detailed content of How to create files in centos. 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