doc: sort: give example for sorting on the last field
[coreutils.git] / man / chown.x
blobdf9afb7b07b53334b1f4328ecadd4a69bd5e2c2f
1 '\" Copyright (C) 1998-2024 Free Software Foundation, Inc.
2 '\"
3 '\" This is free software.  You may redistribute copies of it under the terms
4 '\" of the GNU General Public License <https://www.gnu.org/licenses/gpl.html>.
5 '\" There is NO WARRANTY, to the extent permitted by law.
6 [NAME]
7 chown \- change file owner and group
8 [DESCRIPTION]
9 This manual page
10 documents the GNU version of
11 .BR chown .
12 .B chown
13 changes the user and/or group ownership of each given file.  If
14 only an owner (a user name or numeric user ID) is given, that user is made the
15 owner of each given file, and the files' group is not changed.  If the
16 owner is followed by a colon and a group name (or numeric group ID),
17 with no spaces between them, the group ownership of the files is
18 changed as well.  If a colon but no group name follows the user name,
19 that user is made the owner of the files and the group of the files is
20 changed to that user's login group.  If the colon and group are given,
21 but the owner is omitted, only the group of the files is changed;
22 in this case,
23 .B chown
24 performs the same function as
25 .BR chgrp .
26 If only a colon is given, or if the entire operand is empty, neither the
27 owner nor the group is changed.
28 .SH OPTIONS
29 [SEE ALSO]
30 chown(2)