cheat/cheatsheets/chown

11 lines
223 B
Plaintext
Raw Normal View History

2013-09-11 05:33:55 +02:00
# Change file owner
chown user file
# Change file owner and group
chown user:group file
# Change owner recursively
chown -R user directory
2013-09-21 19:13:16 +02:00
# Change ownership to match another file
chown --reference=/path/to/ref_file file