[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Tool showing directory size of the complet drive



On Wed, 20 Nov 2002, Glyn Kennington wrote:

> 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
>                                           ^^
 Thanx for the ls hint ... I did it with:

 ls -ahRS > /tmp/ls.txt

It was a huge file ... thought there would be a nicer way to find my
disk-space.

But thanx

Oliver
-- 
... don't touch the bang bang fruit



Reply to: