bash_oneliners
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
bash_oneliners [2018/01/19 13:56] – admin | bash_oneliners [2020/06/05 09:46] – admin | ||
---|---|---|---|
Line 13: | Line 13: | ||
< | < | ||
$ find . -printf '%s %p\n' | $ find . -printf '%s %p\n' | ||
+ | </ | ||
+ | * size of all files older than mtime | ||
+ | < | ||
+ | $ find . -mtime +7 -print0 | du -hc --files0-from - | tail -n 1 | ||
</ | </ | ||
* To find the largest file in all sub-directories: | * To find the largest file in all sub-directories: | ||
Line 26: | Line 30: | ||
find */ | sed ' | find */ | sed ' | ||
</ | </ | ||
+ | * free all caches | ||
+ | < | ||
+ | free && sync && echo 3 > / | ||
+ | </ |
bash_oneliners.txt · Last modified: 2023/07/27 13:28 by admin