bug-fileutils
[Top][All Lists]
Advanced

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

ls -z option


From: Richard Neill
Subject: ls -z option
Date: Wed, 18 Sep 2002 16:06:49 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826

Dear all,

I'd really like to see a  -z option in ls. This would be for
"display the true siZe of directories".
ie when doing ls -l, I would like it to report the total size (recursively) of files inside a directory.

I have written a hack which does that. It's not very elegant, but it works OK, and hopefully it will demonstrate what I mean.

The files are both shell scripts, 'lsz' and 'lszZ'.
They can be got from here:

http://www.baddiant.org.uk/lsz
http://www.baddiant.org.uk/lszZ

1) chmod them executable
2) edit line 11 of 'lsz' to reflect the path of 'lszZ'
3) run lsz instead of ls. It supports options -lShraA


Best wishes

Richard






reply via email to

[Prev in Thread] Current Thread [Next in Thread]