CHOWN(1)
๐ CHOWN(1) โ the manual page, bestie edition
okay so welcome to chown, a User Commands classic โจ this is the GNU one, and she's iconic. buckle up ๐
๐ธ NAME ๐ธ
chown โ change file owner and group ๐
๐ฆ SYNOPSIS ๐ฆ
chown [OPTION]... [OWNER][:[GROUP]] FILE...
chown [OPTION]... --reference=RFILE FILE...
โจ DESCRIPTION โจ
so this page is documenting the GNU version of chown, just so we're clear ๐ซถ and what does she do? she changes the user and/or group ownership of each file you hand her. that's the whole job. main character energy fr.
here's the tea on how the ownership part works ๐:
- if you give her only an owner (either a user name or a numeric user ID), that user becomes the owner of each given file โ and the files' group is not changed. leave the group alone, she said.
- if the owner is followed by a colon and a group name (or a numeric group ID), with no spaces between them, then the group ownership of the files gets changed too. two birds, one slay ๐
- if you give a colon but no group name after the user name, that user becomes the owner and the group gets changed to that user's login group. cute.
- if you give the colon and group but omit the owner, only the group changes โ in that case
chowndoes exactly the same thing aschgrp. same vibe, different name ๐ - and if you give only a colon, or the entire operand is empty, then neither the owner nor the group is changed. nothing happens. the void. ๐
๐ OPTIONS ๐
change the owner and/or group of each FILE to OWNER and/or GROUP. with --reference, change the owner and group of each FILE to those of RFILE.
-c,--changesโ like verbose, but she only reports when a change is actually made ๐ข-f,--silent,--quietโ suppress most error messages ๐คซ-v,--verboseโ output a diagnostic for every single file processed. every. one. ๐--dereferenceโ affect the referent of each symbolic link rather than the symbolic link itself โ and bestie, this is the default โจ-h,--no-dereferenceโ affect symbolic links instead of any referenced file; only useful on systems that can actually change the ownership of a symlink ๐ช--from=CURRENT_OWNER:CURRENT_GROUPโ only change the ownership of each file if its current owner and/or group match what you put here. either one may be omitted, and if it's omitted then a match isn't required for that omitted attribute ๐--no-preserve-rootโ do not treat/specially (this is the default)--preserve-rootโ fail to operate recursively on/๐ซ--reference=RFILEโ use RFILE's ownership instead of specifying values yourself. RFILE is always dereferenced if it's a symbolic link ๐-R,--recursiveโ operate on files and directories recursively, down the whole tree ๐ณ
the following options modify how a hierarchy is traversed when the -R option is also specified. if more than one is specified, only the final one takes effect. -P is the default.
-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
owner is unchanged if missing. group is unchanged if missing, but changed to login group if implied by a : following a symbolic OWNER. OWNER and GROUP may be numeric as well as symbolic ๐ง
๐ EXAMPLES ๐
chown root /u Change the owner of /u to "root".
chown root:staff /u Likewise, but also change its group to "staff".
chown -hR root /u Change the owner of /u and subfiles to "root".
๐ AUTHOR ๐
written by David MacKenzie and Jim Meyering. legends, honestly ๐
๐ REPORTING BUGS ๐
- 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. no cap, that's literally what it says ๐ญ
๐ SEE ALSO ๐
full documentation <https://www.gnu.org/software/coreutils/chown>
or available locally via: info '(coreutils) chown invocation'
okay that's the whole page bestie, go forth and change some ownership ๐ โจ
this was GNU coreutils 9.12, dated September 2026 โ thanks for reading, ily, mwah ๐ซถ๐
๐ฆ 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