In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use the chmod method under linux". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use the chmod method under linux.
Method 1: use numbers to change the permissions server of a file or path
The permission scores are as follows:
R:4
W:2
X:1
Identities include:
User:u 、 group:g 、 other:o
For example, the permissions of the file represented by-rwxrwx--- are:
User:4+2+1=7
Group:4+2+1=7
Other:0+0+0=0
Note: if this is the case, the first letter of drwxrwx---, is d, indicating the path, and the permissions are the same as above.
Change file permissions to-rwxr-xr-x
Chmod 755 file
Note: if it is a directory, the code is: chmod 755 dir; directory all 755, then: chmod 755-R dir
Method 2: use symbol types to change file permissions
User:u + (join) r
Group:g-(remove) w files or directories
Other:o = (setup) x
All:a
Chmod aquix file adds execution permissions to u, g, and o
Chmod Umurw file removes writeable permissions from u
You can also use it this way: chmod uprirwx file is equivalent to chmod 755 file
At this point, I believe you have a deeper understanding of "how to use the chmod method under linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.