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 chown does exactly the same thing as chgrp. 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 ๐Ÿ™ˆ


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