Files
2024-02-19 00:21:39 -05:00

66 lines
762 B
Plaintext

Command: chown - change owner
Syntax: chown [-R] owner[:group] file ...
Flags: -R Change directory hierarchies
Examples: chown ast file1 file2 # Make ast the owner of the files
chown -R ast:other dir # Change the owner and group of all
files in dir
The owner field (and optionally group field) of the named files is
changed to owner (i.e., login name specified) and group. Alternatively,
a decimal uid(gid) may be specified instead of a user name. Only the
superuser may execute this command.