Linux uses the chgrp command to modify the group to which the file belongs

  
                

Use the chgrp command on Linux to modify the group of files or directories. What are the usages of the chgrp command? The following is a small series of the system home to give you a detailed introduction to the usage of the Linux chgrp command. Interested friends may wish to understand.

Chgrp command is the abbreviation of change group! The group name to be changed must be in the /etc/group file.

1. Command format:

chgrp [options] [group] [file]

2. Command Function:

The chgrp command can change the group to which a file or directory belongs by using the group name or group ID. The usage rights are superusers.

3. Command parameters:

Required parameters:

-c Output debug information when changes occur

-f Do not display error information

-R Process specified directory And all files in its subdirectories

-v Show detailed processing information at runtime

--dereference Acts on symbolic links, not symbolic links themselves

--no-dereference works on symbolic links themselves

Select parameters:

--reference="File or directory"

--help Display help information

--version Display version information
Previous123Next page Total 3 pages

Copyright © Windows knowledge All Rights Reserved