Home>Article>Operation and Maintenance> What commands are used to create directories, files and copy files?

What commands are used to create directories, files and copy files?

王林
王林 forward
2020-07-23 17:47:44 3666browse

What commands are used to create directories, files and copy files?

Create directory: mkdir

(Recommended tutorial:linux tutorial)

Create file: typical such as touch, vi You can also create files. In fact, as long as you output to a file that does not exist, the file will be created.

Copy files: cp

Related introduction:

What command is used to modify file permissions? What is the format?

File permission modification: chmod

The format is as follows:

$ chmod u+x file 给 file 的属主增加执行权限 $ chmod 751 file 给 file 的属主分配读、写、执行(7)的权限,给 file 的所在组分配读、执行(5)的权限,给其他用户分配执行(1)的权限 $ chmod u=rwx,g=rx,o=x file 上例的另一种形式 $ chmod =r file 为所有用户分配读权限 $ chmod 444 file 同上例 $ chmod a-wx,a+r file同上例 $ chmod -R u+r directory 递归地给 directory 目录下所有文件和子目录的属主分配读的权限

The above is the detailed content of What commands are used to create directories, files and copy files?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete