User Tools

Site Tools


bash:files:find_all_files_greater_than_a_certain_size

BASH - Files - Find all files greater than a certain size

find / -type f -name *.log -size +20M

or

find /var/log -type f 2>/dev/null | xargs du -a 2>/dev/null | awk "{ if ( \$1 > 20000) print \$0 }" | sort -hr
bash/files/find_all_files_greater_than_a_certain_size.txt · Last modified: 2022/06/13 12:18 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki