linux:findfiles
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:findfiles [2016/06/07 10:38] – admin | linux:findfiles [2016/06/07 10:40] (current) – removed admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | **Find Files on Linux** | ||
| - | a) Find Files on Linux with find | ||
| - | <code bash> | ||
| - | find / -name yourfiles | ||
| - | </ | ||
| - | b) Find Directory on Linux with find | ||
| - | <code bash> | ||
| - | find / -name yourdirectory -type d | ||
| - | </ | ||
| - | c) Find File on Linux and execute | ||
| - | <code bash> | ||
| - | find / -name yourfile -exec rm {} \; | ||
| - | </ | ||
| - | d) Find Directory on Linux and execute | ||
| - | <code bash> | ||
| - | find / -name yourdirectory -type d -exec rm {} \; | ||
| - | </ | ||
| - | e) Find Files on Linux with locate | ||
| - | <code bash> | ||
| - | updatedb | ||
| - | locate yourfiles | ||
| - | </ | ||
linux/findfiles.1465288696.txt.gz · Last modified: 2016/06/07 10:38 by admin
