浏览代码

chgrp: add page

Hayden Schiff 9 年之前
父节点
当前提交
e1a8a590e1
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. 19 0
      pages/common/chgrp.md

+ 19 - 0
pages/common/chgrp.md

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