How do you chown a folder and all files in it?

How do you chown a folder and all files in it?
Answer
Use chown to change ownership and chmod to change rights.
use the -R option to apply the rights for all files inside of a directory too. Note that both these commands just work for directories too. The -R option makes them also change the permissions for all files and directories inside of the directory.
 

Tìm kiếm

Back
Top