Linux - Find biggest file in var log, How to find top ten biggest files
Find biggest file in var log
How to find top ten biggest file in a directory or sub directories?Dealing with log files are critical always, In production server you will be getting problems when the log makes your filesystem full.
Command to find top ten biggest file
# find /var/log -type f -print0 | xargs -0 du -h | sort -hr | head
Example:
# find /var/log -type f -print0 | xargs -0 du -h | sort -hr | headOUTPUT:
6.1M /var/log/audit/audit.log.1 1.6M /var/log/anaconda/anaconda.storage.log 1.4M /var/log/audit/audit.log 1.2M /var/log/messages-20120627 1.2M /var/log/messages 1.1M /var/log/wtmp-20120226 760K /var/log/dracut.log
-0 Input items are terminated by a null character instead of by white space.
The topic on Linux - Find biggest file in var log is posted by - Math
Hope you have enjoyed, Linux - Find biggest file in var logThanks for your time