CHGRP(1)
π CHGRP(1) β the one where your files get a whole new group chat π
okay bestie, listen up. this is chgrp, from the General Commands Manual, and it is literally the glow-up artist for your files' group membership. no cap. π¦
β¨ NAME β¨
chgrp β Change the group of each FILE to GROUP.
like. that's it. that's the whole job. she changes groups. π
β¨ SYNOPSIS β¨
chgrp [OPTION]... GROUP FILE...
chgrp [OPTION]... --reference=RFILE FILE...
two ways in, babes: either you tell her the group, or you point at a reference file and go "make it match that one." easy. πΈ
β¨ DESCRIPTION β¨
Change the group of each FILE to GROUP.
periodt. that's the entire plot. π
β¨ OPTIONS β¨
so many flags, so little time. here's every single one, no skips, i promise:
--helpβ Print help information. she's helpful and she knows it πββοΈ-c,--changesβ like verbose but report only when a change is made. so like, only the tea worth spilling β-f,--silentβ (with--quietbelow) suppress most error messages. shhh. ignoring the drama π«Ά--quietβ same deal as-f/--silent, suppress most error messages. it's giving "i'm not reading that group chat" π-v,--verboseβ output a diagnostic for every file processed. she WILL narrate. every single file. π’--preserve-rootβ fail to operate recursively on/. like, do NOT touch the root, bestie, that's the whole system π--no-preserve-rootβ do not treat/specially (the default). yes, this is the default, and yes, that's a little scary. π¨--reference <RFILE>β use RFILE's group rather than specifying GROUP values. copy her vibe, not her soul π--from <GROUP>β change the group only if its current group matches GROUP. gatekeeping, but make it conditional π-R,--recursiveβ operate on files and directories recursively. all the way down, no survivors, slay π-Hβ if a command line argument is a symbolic link to a directory, traverse it. just the command-line ones. selective, iconic β¨-Lβ traverse every symbolic link to a directory encountered. all of them. she's thorough π-Pβ do not traverse any symbolic links (default). the chill option, and also the default π§ββοΈ--dereferenceβ affect the referent of each symbolic link (this is the default), rather than the symbolic link itself. yes bestie, this is the default too, keep up π-h,--no-dereferenceβ affect symbolic links instead of any referenced file (useful only on systems that can change the ownership of a symlink). niche, but iconic β-V,--versionβ Print version. proof of life π«Ά
β¨ VERSION β¨
v(uutils coreutils) 0.12.0
that's the version, bestie. screenshot it. πΈ
β¨ EXAMPLES β¨
these are the moves, fr fr. all provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. also heads up: as uutils is a work in progress, some examples might fail. not me being shady, that's just the truth π
Change the owner group of a file/directory:
chgrp group path/to/file_or_directory
Recursively change the owner group of a directory and its contents:
chgrp [-R|--recursive] group path/to/directory
Change the owner group of a symbolic link:
chgrp [-h|--no-dereference] group path/to/symlink
Change the owner group of a file/directory to match a reference file:
chgrp --reference path/to/reference_file path/to/file_or_directory
β οΈ ok real talk for one sec bestie:--no-preserve-rootis the default, which means recursion really can touch/if you're not careful. and-Pvs-Lvs-Hgenuinely changes which symlinks get walked. read before you press enter, i'm begging π
okay that's the whole page!! π this was the chgrp(1) page from the General Commands Manual, version v(uutils coreutils) 0.12.0, dated 2026-09-25. mwah. go fix those group permissions, main character. ππ¦β¨π
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms