directory size listing with ls
Hi.
I'm trying to get 'ls' to show me the total size of a directory. ls -l just gives the directory entry size, but not the cumulative size of the files contained within it. I can't see anything in the man page. Any ideas, please? |
Hi,
To my knowledge this cannot be done with ls, take a look at du (du -s). Hope this helps. |
There is ls -dl but I don't think it shows you size.
I would use this instead in the directory: du -h --max-depth=1 |
All times are GMT -5. The time now is 10:41 PM. |