Other contacts

Novi članci

Flickr Goodness


July 24, 2012 @ 22:35

cli oneliner – sort top 10 directories

One simple oneliner that I picked up few years ago, and it is great for finding directories that eat up most of space in current directory.
ls -A | grep -v -e '^\.\.$' |xargs -i du -ks {} |sort -rn |head -11 | awk '{print $2}' | xargs -i du -hs {}

Filed under linux, tips&tricks


    Flickr photostream

    SSL is required

    Meta meta :)