Linux chgrp command

Source: Internet
Author: User

The chrgp (change group) is managed by the owner and the group in which the file or directory permissions are controlled in the unix system family.
You can use the chgrp command to retrieve the change file and the group to which the directory belongs. This method only uses groups. This method only uses group names or group identifiers.
Function Description
The group to which the file or directory belongs.
Grammar
Chgrp [-cfhRv] [-- help] [-- version] [group] [file or directory...] or chgrp [-cfhRv] [-- help] [-- reference = & lt; reference file or directory & gt;] [-- version] [file or directory...]
Parameter
-C or -- changes has a similar effect to the "-v" parameter, but only the changed part is returned. -F or -- quiet or -- silent Do Not Display error messages. -H or -- no-dereference only modifies the file connected by the symbol, without changing any other related file. -R or -- recursive processing: all files and subdirectories under the specified directory are processed together. -V or -- verbose displays the command execution process. -- Help Online help. -- Reference = & lt; reference file or directory & gt; set all groups of the specified file or directory to the same group of the reference file or directory.
-- Version: displays the version information.
 
 
# Basic usage [root @ localhost klot] # chgrp root 1 [root @ localhost klot] # ls-al 1-rw-r -- 1 klot root 3 08-16 PM 1 [root @ localhost klot] #

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.