Re: Tool showing directory size of the complet drive
Charlie Reiman wrote:
> If you just want to see all files and their sizes, try 'find . -ls'. Sorting
> this is left as an exercise for the reader.
ls -l puts the size in the 5th columns, so piping the output through
sort -n -k 5
will put them in ascending order.
Which brings me on to another little gripe:
Does anyone else find that files >100MB (requiring more than 8 digits in the
size column) break the alignment of ls -l's output? Example:
drwxrwx--x 2 glyn glyn 4096 Nov 17 22:10 bin
drwxrwx--x 9 glyn glyn 8192 Nov 20 11:37 src
-r--r--r-- 1 glyn glyn 110215168 Nov 20 00:21 sessions_1-4.iso
^^
Glyn
--
I know, for I told me so,
And I'm sure each of you quite agrees:
The more it stays the same, the less it changes
Reply to: