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.
Do you like this Tutorial? Please link back to this article by copying one of the codes below.
URL: HTML link code: BB (forum) link code: 
No comments: