In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article "Linux system how to view file permissions" in addition to programmers, most people do not understand, today, in order to make you a better understanding of "Linux system how to view file permissions", summed up the following content, with a certain reference value, the detailed steps are clear, details are handled properly, I hope you can get something through this article, let's take a look at the specific content.
In the Linux system, files will have permissions, and owners, groups, and others can set different permissions.
\ 1. View: ls-l [filename]
\ 2. Modify
2-1. Literal chmod [who] + [=] [mode]
Who description: U for the owner of the file, g for the group to which the file belongs, o for others, and a for the owner
In accordance with the instructions: + means to add permissions,-means to reduce permissions, and = to overwrite the original permissions
Mode description: r indicates read permission, w indicates write permission, and x indicates executable permission
Example: chmod Grouw temp.bak means to add write permissions to all groups for temp.bak files
2-2. Digital method
Numerical description:-indicates no permission, r corresponds to 4p, w corresponds to 2p, x corresponds to 1, memory; rwx corresponds to 421.
For example: 765 corresponds to-rwxrw-r-x, the first-indicates that the file type is a file, which has nothing to do with permissions, and the last three groups: 7 corresponds to rwx,6 corresponds to rw-,5 corresponds to rMux.
Execute chmod 765 temp.bak to change the temp.bak file permissions to-rwxrw-r-x
3. Add: the directory must have executable permission to view or enter the directory.
To explain here, the permissions of files are different from those of directories.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
Thank you for your reading. I hope you have a certain understanding of the key issue of "how to view file permissions in the Linux system". The specific usage still needs to be understood through hands-on experiments. Try it quickly. If you want to read more articles about relevant knowledge points, welcome to follow the industry information channel!
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.