Tools‎ > ‎Ubuntu/Linux server‎ > ‎

Show disk space usage

'du' command

show total (-s summarized) disk usage of current directory
du -hs
show total disk usage for each directory
du -hs *
show total disk usage for each subdirectory in directory Data/
du -hs Data/*   
 -s  to summarize disk usage of each directory (and single files) in MyDirectory/
 -h  to print sizes in human readable format (3K 21M 2G)
 '*'   to expand all files in MyDirectory/ as individual argument for du

show top 20 biggest diretories (including subdirectories)
du -m | sort -nr | head -20