CHOWN(1)
π CHOWN(1) β change ownership of files π
okay so bestie, welcome to CHOWN(1) from the User Contributed Perl Documentation β it's the Perl documentation page for chown, and it's giving file-ownership main character energy. no cap, we're gonna get you comfy with every flag and every detail. π
π NAME π
chown β change ownership of files π
β¨ SYNOPSIS β¨
here's the whole shape of it, bestie:
chown [-R [-H | -L | -P]] user[:group] file [files ...]
πΈ DESCRIPTION πΈ
chown sets the ownership of files. The first argument after the options is either a user, or a user-group pair, separated by a colon. If the group is given, group membership of the file is changed as well. π
π OPTIONS π
chown accepts the options described below. The options -L, -H and -P are mutually exclusive, and only the last given option will be honoured. All of -L, -H and -P require the -R option to be set first. β οΈ
-Rβ Recurse into directories. Any directories are recursively traversed, and all files and directories will change owner. π-Lβ Follow symbolic links. By default,chownwill not follow symbolic links. This is a potential dangerous option, aschownwill not check for cycles. Be careful. This option requires the-Roption to be set. π¨-Hβ Follow symbolic links of command line files/directories only. This option requires the-Roption to be set. π§-Pβ Do not follow symbolic links at all. This option requires the-Roption to be set. π
π¦ ENVIRONMENT π¦
The working of chown is not influenced by any environment variables. literally zero env-var drama, bestie. π
π BUGS π
chowncan loop forever when symbolic links create cycles. πchownusesFile::Findto recurse. π
β REVISION HISTORY β
the receipts, preserved character-for-character:
$Log: chown,v $
Revision 1.2 2004/08/05 14:17:43 cwest
cleanup, new version number on website
Revision 1.1 2004/07/23 20:10:01 cwest
initial import
Revision 1.1 1999/02/28 19:59:17 abigail
Initial revision
π AUTHOR π
The Perl implementation of chown was written by Abigail, perlpowertools@abigail.be. ππ
π COPYRIGHT and LICENSE π
This program is copyright by Abigail 1999. π
This program is free and open software. You may use, copy, modify, distribute and sell this program (and any modified variants) in any way you wish, provided you do not restrict others to do the same. π«Ά
that's the whole CHOWN(1) page, bestie β brought to you by perl v5.42.2, dated 2026-02-15. stay slay π
β¨
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms