mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 21:55:33 +02:00
chgrp: add page
This commit is contained in:
parent
4b1f1f476a
commit
e1a8a590e1
1 changed files with 19 additions and 0 deletions
19
pages/common/chgrp.md
Normal file
19
pages/common/chgrp.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# chgrp
|
||||||
|
|
||||||
|
> Change group ownership of files and folders.
|
||||||
|
|
||||||
|
- Change the owner of a file/folder:
|
||||||
|
|
||||||
|
`chgrp {{group}} {{path/to/file}}`
|
||||||
|
|
||||||
|
- Recursively change the owner of a folder and its contents:
|
||||||
|
|
||||||
|
`chgrp -R {{group}} {{path/to/folder}}`
|
||||||
|
|
||||||
|
- Change the owner of a symbolic link:
|
||||||
|
|
||||||
|
`chgrp -h {{user}} {{path/to/symlink}}`
|
||||||
|
|
||||||
|
- Change the owner of a file/folder to match a reference file:
|
||||||
|
|
||||||
|
`chgrp --reference={{path/to/reference_file}} {{path/to/file}}
|
Loading…
Add table
Reference in a new issue