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
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.
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!