User Tools

Site Tools


ubuntu:file:find_all_files_greater_than_a_certain_size

This is an old revision of the document!


Ubuntu - File - 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
ubuntu/file/find_all_files_greater_than_a_certain_size.1574890451.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki