Friday, 22 April 2016

How to use chmod and chown on directory including subdirectories ?


chown
If owner need to be changed on a directory including its recurrent sub-directories.
chown -R jonas:jonas work

chmod
If mode need to be changed on a directory including its recurrent sub-directories.
chmod -R 777 work

No comments:

Post a Comment

Note: only a member of this blog may post a comment.