1 | # chown
|
2 |
|
3 | > Change the owning user/group of the specified files
|
4 |
|
5 | - change the user of a file
|
6 |
|
7 | `chown {{user}} {{path/to/file}}`
|
8 |
|
9 | - change the user and group of a file
|
10 |
|
11 | `chown {{user}}:{{group}} {{path/to/file}}`
|
12 |
|
13 | - recursively change the owner of an entire folder
|
14 |
|
15 | `chown -R {{user}} {{path/to/folder}}`
|
16 |
|
17 | - change the owner of a symbolic link
|
18 |
|
19 | `chown -h {{user}} {{path/to/symlink}}`
|