mcgraths
3/10/2015 - 4:09 PM

Disk usage shell commands

Disk usage shell commands

# list subdirectories of the current folder sorted by MB
du -hm --max-depth=1 . | sort -n -r

# list subdirectories with human readable sizes
du -h --max-depth=1 .

# find files larger than 1000MB
find . -size +1000M -ls