In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the example analysis of file permissions and directory permissions in the computer, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let's take a look at it.
File permissions
Files are places that actually contain data, including general text files, database content files, binary executable files (binary program), and so on. Therefore, the meaning of permissions for files is as follows:
R (read): you can read the actual contents of this file, such as reading the text contents of a text file, etc.
W (write): you can edit, add, or modify the contents of the file (but not delete the file)
X (execute): this file has permissions that can be executed by the system.
The importance of permissions to directories
The file is where the actual data is stored, so what is the main storage of the directory? The main content of the directory is the list of record file names, which are strongly related to the directory. So if it's for a directory, what does that r, w, x mean to a directory?
R (read contents in directory):
Indicates that you have permission to read a list of directory structures, so when you have permission to read (r) a directory, it means you can query the file name data in that directory. So you can use the ls command to display a list of the contents of the directory!
W (modify contents of directory):
This writable permission is great for directories! Because he says you have permission to change the directory structure list, that is, the following permissions:
Create new files and directories
Delete existing files and directories (regardless of the permissions of the file!)
Rename an existing file or directory
Move the files and directory locations in the directory.
In short, the w permission of the directory is related to the change of the file name under the directory.
X (access directory):
Hey! What is the purpose of the executive authority of the directory? The directory is just a record of the file name, it can't be used for execution, can it? That's right! The directory cannot be executed, and the x of the directory represents whether the user can enter the directory and become the purpose of the working directory! The so-called working directory (work directory) is your current directory! For example, when you log in to Linux, your home directory is your current working directory. And the command to change the directory is "cd" (change directory)!
Thank you for reading this article carefully. I hope the article "sample Analysis of File permissions and Directory permissions in computers" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you 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.