Disk usage
Sunday, 24 July 2005
As a Linux developer, sometimes you need to know how much space is taken up by files in a directory. The following command shows all files in the current directory, ordered by descending file size:
du -s /home/users/ivan/ * | sort -nr
Especially useful when you need to identify the largest files in a directory.
|