Command to Sort Files by Size
Tagged with: command, du, files, Linux, size, sort
Friday, February 1st, 2008 11:00 PM
Show size of the files and directories sorted by size
du -sk * | sort -rn
Show size of the files and directories sorted by size
du -sk * | sort -rn
Estimate space used by directory.
du -sh dir
du shows the ‘disk usage’ – the space taken up by the files and folders in the current directory.
du -bh | more