From owner-freebsd-questions@freebsd.org Wed Jan 27 16:16:46 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A145A6FBFB for ; Wed, 27 Jan 2016 16:16:46 +0000 (UTC) (envelope-from ekarkkai@pp.htv.fi) Received: from welho-filter2.welho.com (welho-filter2.welho.com [83.102.41.24]) by mx1.freebsd.org (Postfix) with ESMTP id 074C91C1A for ; Wed, 27 Jan 2016 16:16:45 +0000 (UTC) (envelope-from ekarkkai@pp.htv.fi) Received: from localhost (localhost [127.0.0.1]) by welho-filter2.welho.com (Postfix) with ESMTP id 6CA9E512 for ; Wed, 27 Jan 2016 18:07:15 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at pp.htv.fi Received: from welho-smtp1.welho.com ([IPv6:::ffff:83.102.41.84]) by localhost (welho-filter2.welho.com [::ffff:83.102.41.24]) (amavisd-new, port 10024) with ESMTP id AUqSzhbRhovl for ; Wed, 27 Jan 2016 18:07:15 +0200 (EET) Received: from zero.my.domain (87-100-247-134.bb.dnainternet.fi [87.100.247.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by welho-smtp1.welho.com (Postfix) with ESMTPS id 02991C4 for ; Wed, 27 Jan 2016 18:07:14 +0200 (EET) Received: from thunderbolt.my.domain (thunderbolt.my.domain [10.192.168.30]) by zero.my.domain (8.15.2/8.15.2) with ESMTPS id u0RG79f4090281 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 27 Jan 2016 18:07:14 +0200 (EET) (envelope-from ekarkkai@pp.htv.fi) Received: from thunderbolt.my.domain (localhost [127.0.0.1]) by thunderbolt.my.domain (8.15.2/8.15.2) with ESMTPS id u0RG78Ix022147 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 27 Jan 2016 18:07:08 +0200 (EET) (envelope-from ejk@thunderbolt.my.domain) Received: (from ejk@localhost) by thunderbolt.my.domain (8.15.2/8.15.2/Submit) id u0RG78x2022146 for freebsd-questions@freebsd.org; Wed, 27 Jan 2016 18:07:08 +0200 (EET) (envelope-from ejk) Date: Wed, 27 Jan 2016 18:07:08 +0200 From: Esa Karkkainen To: freebsd-questions@freebsd.org Subject: Re: What's taking up all my disk space? Message-ID: <20160127160708.GB14223@pp.htv.fi> Mail-Followup-To: Esa Karkkainen , freebsd-questions@freebsd.org References: <20160126180529.GA14223@pp.htv.fi> <20160127081751.fd94fa9b.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160127081751.fd94fa9b.freebsd@edvax.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2016 16:16:46 -0000 On Wed, Jan 27, 2016 at 08:17:51AM +0100, Polytropon wrote: > On Tue, 26 Jan 2016 20:05:29 +0200, Esa Karkkainen wrote: > > # du -axk / | awk '$1 > 2^20 {print}' | sort -rn | head -20 > > Nice use of awk! Note that you can leave out "{print}" because > this is the default action: Force of habit, I'm used to writing one liners that work, or should work, across multiple unix-like operating systems and versions. For example I still use "find blah -print", even "-print" is the default action on most unix-like operating systems find. IIRC that one liner above, should work on just about any unix-like OS I've come across, excluding some or all versions of Solaris, because Solaris "du" doesn't have "-x" option. 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