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 7/16/07, Nigel Henry <cave.dnb@xxxxxxxxxx> wrote:
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.


Ah Nigel I was on one of mine google search sprees :) I got stuck with
one tool (ncdu[1]) and couldn't remember where I read about it so I
searched all about it so this email poped up in my gmail search....

[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

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux