Re: How to find total MB of a directory plus all subdirectories

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

 



On Monday 16 July 2007 20:40, Chris Jones wrote:
> > ls -A | grep -v -e '^\.\.$' |xargs -i du -ks {} |sort -rn |head -11 |
> > awk '{print $2}' | xargs -i du -hs {}
>
> Very clever, but a bit of a mouthful ;)
>
> Just to clarify things for the original poster, you will probably find a
> simple,
>
>  > du -sh /path/to/directory
>
> is more than enough... e.g.
>
> localhost ~ > du -sh ~/Pictures
> 5.2G    /home/jonesc/Pictures
>
> if you want something graphical, checkout the application 'filelight' - Its
> quite neat. (available via a 'yum install filelight').
>
> Chris

Being the original poster, du -sh /path/to/directory worked fine for me.

Just where did Valent find this posting so as to reply to it? I asked the 
question ages ago.

Nigel.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux