Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Check Directory/dir/file Size In Linux

DZone's Guide to

Check Directory/dir/file Size In Linux

·
Free Resource


#check partition sizes
df -h

#check directory size
du -s -h /var/log/

#check every directory and file sizes under a dir.
du -s -h /var/log/*

#check individual size size
du -s -h /var/log/lastlog 
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}