Tag: du

Command to Sort Files by Size

Show size of the files and directories sorted by size du -sk * | sort -rn

Show Space Usage of a Directory

Estimate space used by directory. du -sh dir

Show Disk Usage – du

du shows the ‘disk usage’ – the space taken up by the files and folders in the current directory. du…