chgrp usergroup somedirIf you want to change the directory's contents too, simply append the -R option to the chgrp command as shown below:
chgrp -R usergroup somedirNote that somedir could also be a file (it doesn't have to be a directory). Also, if you want to change a directory's owner simply switch chgrp to chown. The options between the two commands are the same.
No comments:
Post a Comment