how to combine 'du' and 'ls'

gsublett at lava.net gsublett at lava.net
Sun Dec 17 21:55:02 PST 2000


On 18-Dec-00 Griffith Feeney wrote:
> How to combine 'ls' and 'du' to get a listing of the space taken by
> each
> directory in /?
> 
> 'du -hs bin boot usr' will show size of bin, boot and usr, but you have
> to
> type each directory name.
> 
> 'du -hs bin boot usr < ls' doesn't work, nor does 'ls | du -hs -'. Can
> one
> use ` somehow?


du -h --max-depth=1

----------
Gary

  7:55pm  up 27 days, 7 min,  6 users,  load average: 0.16, 0.60, 0.53



More information about the LUAU mailing list