Skip to content

Commit b17999c

Browse files
author
zhenwei-li
committed
the bash command
1 parent 0881a27 commit b17999c

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Temp/bash/cmd.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# 命令
2+
3+
- [一. 删除缓存](#一-删除缓存)
4+
- [1.1. pyc and pycache](#11-pyc-and-pycache)
5+
- [1.2. 扩展目录](#12-扩展目录)
6+
7+
## 一. 删除缓存
8+
9+
### 1.1. pyc and pycache
10+
11+
```bash
12+
# the delete files
13+
find . -name '*.pyc' -delete
14+
# the delete directory
15+
find . -type d -name __pycache__ -exec rm -r {} +
16+
```
17+
18+
### 1.2. 扩展目录
19+
20+
推荐删除扩展目录:
21+
22+
```bash
23+
find . -type d -name build -exec rm -r {} +
24+
find . -type d -name dist -exec rm -r {} +
25+
find . -type d -name .tox -exec rm -r {} +
26+
```

0 commit comments

Comments
 (0)