mkdocs/docs/bash.md

19 lines
403 B
Markdown
Raw Normal View History

2021-05-24 15:17:11 +02:00
# Bash Commands
## Find
### Find and delete
Find and delete command
```bash
find / -name .DS_Store -delete
```
Alternative find and delete command
```bash
find / -name ".DS_Store" -exec rm {} \;
```
the previous command is due that not all `find` have a delete funcion but with overhead of new process `-exec`.
Find and delete with no overhead
```bash
find / -name .DS_Store -print0 | xargs -0 rm
```