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

王林
Release: 2020-07-23 17:47:44
forward
3692 people have browsed it

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 目录下所有文件和子目录的属主分配读的权限
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!