chown: use the owner and group of a reference file and apply those values to another file

Example:

    chown --reference=foobar.txt *.txt
waldyrious/alt-syntax
André König 2014-08-18 12:45:43 +02:00
parent 7aa0d1f429
commit 754797282e
1 changed files with 4 additions and 0 deletions

View File

@ -17,3 +17,7 @@
- change the owner of a symbolic link
`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}}`