What's the Command in CentOS to purge/delete all contents in ALL "public_html" folders for all users at once? (I have my web server that I just cloned to make it into a mail server, but I don't want too keep all the public_html files)
Asked
Active
Viewed 582 times
1 Answers
2
Well, if all the files are under /home
and you want to remove all the contents of /home/*/public_html
you could do
rm -rf /home/*/public_html/*

Eric Renouf
- 13,950
- 3
- 45
- 67