CHGRP(1)
π chgrp(1) β change group ownership π
okay bestie, welcome to the User Commands section of the manual, page 1, and today's main character is chgrp π she changes group ownership and she does it flawlessly. no cap.
β¨ NAME β¨
chgrp β change group ownership π«Ά
πΈ SYNOPSIS πΈ
chgrp [OPTION]... GROUP FILE...
chgrp [OPTION]... --reference=RFILE FILE...
π DESCRIPTION π
the whole vibe: change the group of each FILE to GROUP π
. and with --reference, you change the group of each FILE to that of RFILE instead. iconic behaviour honestly.
here come the options, and yes we're doing all of them, no skips, periodt:
-c,--changesβ like--verbosebut she only speaks up when a change actually happens. lowkey the polite one π-f,--silent,--quietβ suppress most error messages. she's not gonna yell at you π-v,--verboseβ output a diagnostic for every single file processed. main character energy, she narrates everything π₯--dereferenceβ affect the referent of each symbolic link rather than the symbolic link itself. fun fact bestie: this is the default β¨-h,--no-dereferenceβ affect symbolic links instead of any referenced file; useful only on systems that can change the ownership of a symlink π¦--from=CURRENT_OWNER:CURRENT_GROUPβ change the ownership of each file only if its current owner and/or group match what you put here. either one may be omitted, in which case a match is not required for the omitted attribute π§--no-preserve-rootβ do not treat/specially (the default). it's giving unbothered.--preserve-rootβ fail to operate recursively on/. she said NOT the root directory π--reference=RFILEβ useRFILE's ownership rather than specifying values.RFILEis always dereferenced if a symbolic link. periodt.-R,--recursiveβ operate on files and directories recursively π
π heads up bestie: the next little crew of options only matter for how a hierarchy gets traversed when-Ris also specified. if more than one is specified, only the final one takes effect. and-Pis the default. iykyk.
-Hβ if a command line argument is a symlink to a directory, traverse it-Lβ traverse every symbolic link to a directory encountered-Pβ do not traverse any symbolic links--helpβ display this help and exit π--versionβ output version information and exit
π EXAMPLES π
chgrp staff /u Change the group of /u to "staff".
chgrp -hR staff /u Change the group of /u and subfiles to "staff".
π AUTHOR π
Written by David MacKenzie and Jim Meyering. absolute legends, we stan π
π REPORTING BUGS π
found a bug? not the vibe, but tell someone:
- Report bugs to:
bug-coreutils@gnu.org. - Report any translation bugs to:
https://translationproject.org/team/. - GNU coreutils home page:
https://www.gnu.org/software/coreutils/ - General help using GNU software:
https://www.gnu.org/gethelp/
β COPYRIGHT β
Copyright Β© 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. like fr fr, no warranty, that's not a drill π
π¦ SEE ALSO π¦
Full documentation https://www.gnu.org/software/coreutils/chgrp or available locally via: info '(coreutils) chgrp invocation'
and that's the whole page bestie!! π₯³ this was GNU coreutils 9.12, dated September 2026 β mwah, go change some groups responsibly π πβ¨
π¦ where this page comes from
- arch rolling: coreutils 9.12-2 Β· GPL-3.0-or-later AND GFDL-1.3-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms