Get Disk and directory Size in linux using shell command

Tuesday, 6. December 2011

Folder size in human readable numbers

$ ls
dir1  dir2
$ du -sh dir1
2.4M  dir1

Disk Space Usage

$ df -kh

Sort Folders By Size

du -H --max-depth=1 /home/ | sort -n -r

Leave a Reply

You must be logged in to post a comment.