Running out of space?
<3
:0
Date posted: Nov. 1, 2023, 4:36 p.m.
Problem: Running out of space
What does it do?: Finds large error logs in the /home/ dir.
Problem: Running out of space
What does it do?: Finds large error logs in the /home/ dir.
sean@castle-murray.com[~//bash/awk] #
find /home -not -path "/home/virtfs/*" -type f -size +1G -exec du -h {} + |sort -rh | awk -F "G" '/error.log$/ {print $0; sum+=$1;} END{print "Total: " sum}'