chown: use the owner and group of a reference file and apply those values to another file
Example: chown --reference=foobar.txt *.txt
This commit is contained in:
@@ -17,3 +17,7 @@
|
|||||||
- change the owner of a symbolic link
|
- change the owner of a symbolic link
|
||||||
|
|
||||||
`chown -h {{user}} {{path/to/symlink}}`
|
`chown -h {{user}} {{path/to/symlink}}`
|
||||||
|
|
||||||
|
- use the owner and group of a reference file and apply those values to another file
|
||||||
|
|
||||||
|
`chown --reference={{reference-file}} {{path/to/file}}`
|
||||||
|
Reference in New Issue
Block a user