Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jan 2016 20:05:29 +0200
From:      Esa Karkkainen <ejk@iki.fi>
To:        freebsd-questions@freebsd.org
Subject:   Re: What's taking up all my disk space?
Message-ID:  <20160126180529.GA14223@pp.htv.fi>
In-Reply-To: <CAH=3fONyAy6CA8kGHzyWiiFGk-qA5=fdQVLjoE20dk9OY-OkrQ@mail.gmail.com>
References:  <CAH=3fONyAy6CA8kGHzyWiiFGk-qA5=fdQVLjoE20dk9OY-OkrQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 26, 2016 at 11:21:25AM +0100, Murk Fletcher wrote:
> Hi!

Hi,

> Maybe there's a way to use `du` to show all files larger than 1GB
> and then pass it on to some other command to sort them by size?

This shows you 20 largest directories and files over 1GB in size.

# du -axk / | awk '$1 > 2^20 {print}' | sort -rn | head -20

> Thanks!

You're welcome.

Regards, 

Esa

-- 
"In the beginning the Universe was created. This has made a lot of
people very angry and been widely regarded as a bad move."
        -- Douglas Adams 1952 - 2001



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160126180529.GA14223>