Skip to content

Commit 133de2b

Browse files
committed
💥 Add recursive delete directory command
1 parent 7f48648 commit 133de2b

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

docs/devops/linux-tips/performance-testing-commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ heavy-script.sh > output
1717

1818
### Output
1919

20-
```bash
20+
```txt
2121
Elapsed: 0:00.81
2222
User: 0.80
2323
System: 0.00
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Recursive Delete Directories
2+
3+
Use this command to find & recursively delete directories:
4+
5+
```bash
6+
# Delete any directory named `dist` and `node_modules`
7+
rm -rf `find . -type d -name dist` \
8+
&& rm -rf `find . -type d -name node_modules`
9+
```

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ nav:
9191
- TomCat QuickStart: devops/linux-tips/tomcat.md
9292
- Ubuntu Welcome Banner: devops/linux-tips/welcome-banner.md
9393
- Bash Performance Testing: devops/linux-tips/performance-testing-commands.md
94+
- Recursively Delete Directories: devops/linux-tips/recursive-delete.md
9495

9596
- Networking:
9697
- Analysing nginx logs: devops/networking/go-access.md

0 commit comments

Comments
 (0)