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.
我目前在 public_html 目录和执行时
rm 文件名.php
它只删除 public_html dir 中的那个文件,
但在超过 80 个子目录中,我拥有并且还需要删除相同的文件。
那会是什么命令呢?
假设目录的完全限定名称,如何:
find /var/public_html -name "filename.php" -exec rm -rf {} \;