In unix and linux, the chmod command is used to change the permissions of files and directories. This is a must for unix and linux users to be familiar with many
In unix and linux, the chmod command is used to change the permissions of files and
ChmodIs a Command Used in UNIX systems to control the user's permissions on files (ChAngeMoDA combination of e-word prefixes) and functions. Only the file owner and the Super User can modify the file or directory permissions. You can use absolute
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
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
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
Permissions to view Linux files: Ls-l file name UluitugUluitugTo view the permissions for a Linux folder: Ls-ld folder name (in directory) UluitugUluitugModify file and folder permissions: UluitugUluitugsudo chmod-(representing type) xxx (owner) xxx
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
1. Introduction to file systems and permissions
2. Permission setting chmod
3. Advanced applications of find and chmod
4. End
Today I saw a sentence:UNIX is very user-friendly. It's just picky who its friends are.
1. Introduction to file systems
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 bu users 2254 200
Http://william71.blogbus.com/logs/33484772.html755 on behalf of the user to the file has read, write, execute permissions, the same group of other people have the ability to execute and read, no write permission, the other user's permissions and the
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.