mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
new page for chown, fixes #10
This commit is contained in:
parent
476246e7e3
commit
cd990fa6da
1 changed files with 19 additions and 0 deletions
19
osx/chown.md
Normal file
19
osx/chown.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# chown
|
||||
|
||||
> Change the owning user/group of the specified files
|
||||
|
||||
- change the user of a file
|
||||
|
||||
`chown {{user}} {{path/to/file}}`
|
||||
|
||||
- change the user and group of a file
|
||||
|
||||
`chown {{user}}:{{group}} {{path/to/file}}`
|
||||
|
||||
- recursively change the owner of an entire folder
|
||||
|
||||
`chown -R {{user}} {{path/to/folder}}`
|
||||
|
||||
- change the owner of a symbolic link
|
||||
|
||||
`chown -h {{user}} {{path/to/symlink}}`
|
Loading…
Add table
Reference in a new issue