Clean up web host

Modified on Wed, 14 May at 6:07 PM

# go into sudo 

sudo -i


# prune docker images

docker image prune -a


# recreate postix log file

rm  /var/log/postfix.log

sudo touch /var/log/postfix.log

sudo chown syslog:adm /var/log/postfix.log

sudo chmod 640 /var/log/postfix.log


# list size for each top folder:

sudo du -sh /var/www/*/


# tree view

ncdu


# recursive delete a folder

rm -rv /var/www/xxxxx/public_html/wp-content/cache



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article