Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
CentOS 中为所有用户一次清除/删除所有“public_html”文件夹中的所有内容的命令是什么?(我有我刚刚克隆的 Web 服务器以使其成为邮件服务器,但我不想保留所有 public_html 文件)
好吧,如果所有文件都在下面/home并且你想删除/home/*/public_html你可以做的所有内容
/home
/home/*/public_html
rm -rf /home/*/public_html/*