pages.zh: update outdated pages (#11939)

This commit is contained in:
Sebastiaan Speck
2024-01-01 10:38:53 +01:00
committed by GitHub
parent ef0f5499ad
commit 81ddb70476
59 changed files with 125 additions and 205 deletions

View File

@@ -19,17 +19,17 @@
`find {{指定目录}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'`
- 查找符合指定大小范围的文件:
- 查找符合指定大小范围的文件,将递归深度限制为 "1"
`find {{指定目录}} -size {{+500k}} -size {{-10M}}`
`find {{指定目录}} -maxdepth 1 -size {{+500k}} -size {{-10M}}`
- 对每个文件运行命令(在命令中使用 `{}` 代表当前文件):
`find {{指定目录}} -name '{{*.ext}}' -exec {{wc -l {} }}\;`
- 查找最近 7 天修改的文件并删除
- 查找最近 7 天修改的文件:
`find {{指定目录}} -daystart -mtime -{{7}} -delete`
`find {{指定目录}} -daystart -mtime -{{7}}`
- 查找空0 字节)的文件并删除: