How to find total MB of a directory plus all subdirectories

Valent Turkovic valent.turkovic at gmail.com
Mon Jul 16 21:33:08 UTC 2007


On 7/16/07, Chris Jones <jonesc at hep.phy.cam.ac.uk> 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
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>

I have been trying to install ncdu[1] Ncourses version of du which
should provide graphical presentation in cli of disk usage. I love
filelight but I would also like to have a cli graphical tool for disk
usage.

Has anybody suceeded in compiling ncdu for FC6 or F7? If you did
please tell me how - I can't make it compile.

[1] http://dev.yorhel.nl/ncdu/

-- 
http://kernelreloaded.blog385.com/
linux, blog, anime, spirituality, windsurf, wireless
registered as user #367004 with the Linux Counter, http://counter.li.org.
ICQ: 2125241
Skype: valent.turkovic




More information about the fedora-list mailing list