Brother Bird's Linux private dishes basic study: Whim decided to look at this book, although it is a very basic thing, but, is definitely not a waste of time, such as I finished reading after finally understand what the meaning of chmod777.
Writing
Each file and directory in a Linux system has access permissions, which are used to determine who can access and manipulate files and directories.Access to a file or directory is divided into read-only, write-only, and executable three types. As an
Each file and directory in a Linux system has access permission to determine who can access and manipulate files and directories in any way.
File or directory access is divided into read-only, write-only and executable three kinds. In the case of a
Linux chmod command details
The chmod command is very important for changing the access permissions of files or directories. You can use it to control access to files or directories.This command can be used in two ways. One is the text setting
Chmod often used. But the basics are limited to the use of chmod 755 A1. or 777.Today encountered a problem to think, let a folder can only see themselves, others can not see. I don't know, it's a few. Deliberately learn the meaning behind these
Many users who prefer to use the chmod command are still not very clear about the meaning and permissions of the chmod command, so they cause a certain amount of trouble when used. In order to solve the confusion of these users, today's small series
Chmod command, chmod
Chmod -- Modify file or directory permissions
ChAnge the permissionsModE of a file
Command path:/bin/chmod
Note: Only root users and file owners can modify permissions.
Example 1:
# Chmod644/temp/chmodtest
R (read) -- 4
W
The chmod command to modify the file and folder permissions is attached with the instance syntax: in the chmod [who] [+ |-|] [mode] file name command, each option is defined as a user, that is, the owner of a file or directory. G indicates the same
In linux, we need to use the linux chmod command to modify the permissions of a folder or file. Below I have written several simple examples for your reference.
Syntax: chmod [who] [+ |-| =] [mode] File Name
The meaning of each option in the command
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.