瀏覽代碼

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

Example:

    chown --reference=foobar.txt *.txt
André König 10 年之前
父節點
當前提交
754797282e
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      pages/common/chown.md

+ 4 - 0
pages/common/chown.md

@@ -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}}`