The chmod command is used to change the permissions of a file or directory.In the UNIX system family, the control of file or directory permissions is distinguished by reading, writing, performing 3 general permissions, and 3 special permissions are
Linux Command--chmod
Command Description
Permissions to change the file or directory. In the UNIX system family, the control of file or directory permissions is divided by reading, writing, executing 3 general permissions, and 3 special
One, the use of chown and chmod commands
directive Name: chmod
Use Rights: All users
How to use: chmod [-CFVR] [--help] [--version] Mode file ...
Description: Linux/unix file access rights are divided into three levels: file owners, groups,
Grammar
chmod (file,mode) parameter description
File required. Specifies the documents to be inspected.
mode is optional. Specify the new permissions.
The mode parameter consists of 4 numbers:
The first number is always 0.
The second number
Grammar
chmod (file,mode) parameter description
File required. Specify the files to be inspected.
mode is optional. Specify the new permissions.
The mode parameter consists of 4 digits:
The first number is always 0.
The second number stipulates the
To view the permissions for a Linux file: Ls-l file nameTo view permissions for a Linux folder: Ls-ld folder name (in the same directory)To modify file and folder permissions:sudo chmod-(on behalf of type) XXX (owner) xxx (group user) xxx (other
Today to share 2 commands are also commonly used in our usual, chmod and chown seems to spell a bit similar, but the use of the two is different. Chmod is used to set folder and file permissions, such as our VPS host files can not read and write,
Command name: chmod
Permission: All Users
Usage: chmod [-CFVR] [-- help] [-- version] mode file...
Note: file access permissions for Linux/Unix are classified into three levels: file owner, group, and others. Chmod can be used to control how files
Under various UNIX and Linux operating systems, each file (folder is also considered a file) is read, write, run set permissions.For example, when I use the ls-l command to list file tables, I get the following output:-rw-r--r--1 apple users 2254 200
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.