📌  相关文章
📜  linux 命令删除具有指定名称 recursivel 的目录 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:18.805000             🧑  作者: Mango

代码示例1
# First find the directory names as to not accidentally delete important directories
find . -type d -name __pycache__
# If you want to recursively delete its contents, replace -exec rmdir {} \; by -delete or -prune -exec rm -rf {} \;. Other answers include details about these versions, credit them too.
find . -type d -name __pycache__ -prune -exec rm -rf {} \;