Created
March 31, 2013 05:22
-
-
Save haio/5279639 to your computer and use it in GitHub Desktop.
chown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
示例 | |
要更改文件 program.c 的所有者: | |
chown jim program.c | |
program.c 的用户访问权限现在应用到 jim。作为所有者,jim 可以使用 chmod 命令允许或拒绝其他用户访问 program.c。 | |
要将目录 /tmp/src 中所有文件的所有者和组更改为用户 john 和组 build: | |
chown -R john:build /tmp/src |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment