From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id AB6A513877A for ; Mon, 14 Jul 2014 00:19:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C39ABE0874; Mon, 14 Jul 2014 00:19:49 +0000 (UTC) Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B0889E086C for ; Mon, 14 Jul 2014 00:19:48 +0000 (UTC) Received: by mail-pd0-f181.google.com with SMTP id v10so4263590pde.12 for ; Sun, 13 Jul 2014 17:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type:subject:from:date:to :message-id; bh=nWMetGSJPRL8U3iCamcQir6+2cYK9IY/FdQOIjJ+EKo=; b=Kq7tJPtjgg4apSbAZh38132varvKzkATJq7ZU3heFKd9mdFk+OQrK2I7KoMFSFXiaF MJ0UOebcmvv44jU+tW2Z9h9eMkMmaZSv+HAkOs3al5NEqwrjEU7CwHStoYiHSBoMyG4e AtfN317s9W4jEp35E2jYwBimCpyQfTVDl0s8yyWXVKDdtC06h9F8c/aafP3uuNK9BGII 8bw/HaFdrmTqeO6vLBw6xhH9Wtmu08/oec1MeFVOaPWT/rRDU4tvlHRi+ZzQ4fG/AKFf bjJ2BVNxtDmQP/5+24dtzK79gl+I1KZLwyDcczt5JcZ9GkxSRFhas/+K4jiz2HEqRfGX TNGA== X-Received: by 10.70.37.225 with SMTP id b1mr13518391pdk.78.1405297187735; Sun, 13 Jul 2014 17:19:47 -0700 (PDT) Received: from [10.58.123.172] (pa49-181-233-238.pa.nsw.optusnet.com.au. [49.181.233.238]) by mx.google.com with ESMTPSA id ft1sm12036084pdb.63.2014.07.13.17.19.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 13 Jul 2014 17:19:46 -0700 (PDT) User-Agent: K-9 Mail for Android In-Reply-To: <20140713205330.GB22079@syscon7> References: <20140713200341.GA22079@syscon7> <20140713232557.02802c3f@marisa.4dq.com> <20140713205330.GB22079@syscon7> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [gentoo-user] locating large disk files From: Bruce Schultz Date: Mon, 14 Jul 2014 10:19:32 +1000 To: gentoo-user@lists.gentoo.org Message-ID: <3c218ee3-3809-4f9b-83a4-07235e7e213d@email.android.com> X-Archives-Salt: e5c90e20-d3cf-4f4e-9920-5c2d48b9f0ef X-Archives-Hash: f191b201edbafd496c3f22dd9aeb4dd0 On 14 July 2014 6:53:30 AM AEST, Joseph wrote: >On 07/13/14 23:25, Dimitri Semitsoglou-Tsiapos wrote: >>On Sun, 13 Jul 2014 14:03:41 -0600 >>Joseph wrote: >> >>> I'm trying to clean up my home directory by locating large disk >>> files. I used: find / -type f -size +20000k -exec ls -lh {} \; | awk >>> '{ print $8 ": " $5 }' >> >>Take a look here regarding why you should never parse ls' output: >>http://mywiki.wooledge.org/ParsingLs >> >>You can use ncdu or xdiskusage (both available in portage) to get more >>useful output. Both will allow you to track down large folders, not >>just single files (for example cache folders tend to hold a large >>amount of tiny files, which may collectively amount for a large chunk >>of your hard disk space). >> > >Thanks folks, so in this case I guess: >find / -type f -size +20000k -exec du -h {} \; > >is the winner (it does the trick). Pipe that through sort -h to get the files sorted by size -- :B