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)06/02 Report--
This article mainly introduces how to use linux chown, has a certain reference value, friends in need can refer to. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
Linux/Unix is a multiuser and multiplex operating system, and all files have owners. Use chown to change the owner of the specified file to the specified user or group, the user can be the user name or the user ID; group can be the group name or the group ID; file is a list of files to change permissions separated by spaces, and wildcards are supported.
Generally speaking, the chown instruction is only used by the system administrator (root). The general user does not have the permission to change other people's file owners, nor does they have the authority to change their own file owners to someone else. Only the system administrator (root) has such permissions.
Permission: root
Grammar
Chown [- cfhvR] [--help] [--version] user [: group] file...
Parameters:
User: the user ID of the new file owner
Group: the user group of the new file owner (group)
-c: displays information about the changed part
-f: ignore error messages
-h: fix symbolic links
-v: displays detailed processing information
-R: processes all files in the specified directory and its subdirectories
-- help: displays auxiliary instructions
-- version: display version
Example
Set the owner of the file file1.txt to runoob, and the user of the group runoobgroup:
Chown runoob:runoobgroup file1.txt
Set the owner of all files and subdirectories under the current directory to runoob, and the user of the group runoobgroup:
Chown-R runoob:runoobgroup * Thank you for reading this article carefully. I hope it will be helpful for everyone to share how to use linux chown. At the same time, I also hope you will support us, pay attention to the industry information channel, and find out if you have any problems. Detailed solutions are 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.