怎样用命令行修改文件目录的owner和group ? | how to change a directory’s owner and group using command line

目标: 修改目录需要修改目录和目录内每个文件, 把它们的owner和group都改掉. 其实只要一行命令就可以做到

$ sudo chown -R newowner:newgroup ./my-dir/

-R是recursvie的意思. 注意是大写.

Leave a Comment

Your email address will not be published.