chmod, chown & remove

Set permissions on all directories under the folder server1 to 755

chmod -R 755 /usr/home/username/server1/

Remove all data (file and directories) from the folder server1

rm -rf /usr/home/username/server1/*

Set the user and group to example:example for all data (files and directories) on/under the directory accounts

chown -R example:example /home/username/public_html/test/accounts

Author: Christopher Smith

I managed websites.

Leave a Reply

Your email address will not be published. Required fields are marked *