Check directory size

# To check size of partition
df -h
# To check size of directory
du -s -h /var/log/
#To check every directory and file sizes under a dir.
du -s -h /var/log/*
#To check individual size
du -s -h /var/log/lastlog

Leave a Reply

Your email address will not be published. Required fields are marked *.

*
*
You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>