Difference between revisions of "du examples"

From thelinuxwiki
Jump to: navigation, search
(Created page with " # du -sh 64G . # du -s * | awk '{s+=$1} END {print s " / " 1048576 }' | bc -l | awk '{ printf ("%.2f%s\n",$1," GB") }' 63.98 GB # du -s *.log | awk '{s+=$1} END {pri...")
 

Latest revision as of 14:50, 18 January 2014

# du -sh
64G     .
# du -s * | awk '{s+=$1} END {print s " / " 1048576 }' | bc -l | awk  '{ printf ("%.2f%s\n",$1," GB") }'
63.98 GB
# du -s *.log | awk '{s+=$1} END {print s " / " 1048576 }' | bc -l | awk  '{ printf ("%.2f%s\n",$1," GB") }'
26.50 GB