User Tools

Site Tools


bash_oneliners

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
bash_oneliners [2018/04/23 12:31] adminbash_oneliners [2020/06/05 09:46] admin
Line 13: Line 13:
 <code> <code>
 $ find . -printf '%s %p\n'|sort -nr|head $ find . -printf '%s %p\n'|sort -nr|head
 +</code>
 +  * size of all files older than mtime
 +<code>
 +$ find . -mtime +7 -print0 | du -hc --files0-from - | tail -n 1
 </code> </code>
   * To find the largest file in all sub-directories:   * To find the largest file in all sub-directories:
bash_oneliners.txt · Last modified: 2023/07/27 13:28 by admin