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 78AAD1392EF for ; Sun, 13 Jul 2014 20:53:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E5642E0857; Sun, 13 Jul 2014 20:53:15 +0000 (UTC) Received: from mail146c7.megamailservers.com (mail768.megamailservers.com [69.49.98.78]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D80B3E07C7 for ; Sun, 13 Jul 2014 20:53:14 +0000 (UTC) X-POP-User: admin@sys-concept.com X-VIP: 69.49.109.100 Received: from syscon7.localdomain (S01060050da7ae68c.ed.shawcable.net [68.149.90.13]) by mail146c7.megamailservers.com (8.13.6/8.13.1) with ESMTP id s6DKrCjv002565 for ; Sun, 13 Jul 2014 16:53:13 -0400 Received: by syscon7.localdomain (Postfix, from userid 1000) id 176E3200194; Sun, 13 Jul 2014 14:53:31 -0600 (MDT) Date: Sun, 13 Jul 2014 14:53:30 -0600 From: Joseph To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] locating large disk files Message-ID: <20140713205330.GB22079@syscon7> References: <20140713200341.GA22079@syscon7> <20140713232557.02802c3f@marisa.4dq.com> 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-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline In-Reply-To: <20140713232557.02802c3f@marisa.4dq.com> User-Agent: Mutt/1.5.22 (2013-10-16) X-CTCH-RefID: str=0001.0A020208.53C2F1B9.0088,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.1 cv=Tqzf2lnh c=1 sm=1 tr=0 a=C3ZDv51cNVt4vJz/79I2xQ==:117 a=C3ZDv51cNVt4vJz/79I2xQ==:17 a=SDcUNfBxAAAA:8 a=BDKbP5mgAAAA:8 a=Unq3plm5DvEA:10 a=M1kyBYkWWGkA:10 a=m4linUFjiDMA:10 a=nDghuxUhq_wA:10 a=8nJEP1OIZ-IA:10 a=pGLkceISAAAA:8 a=dZMFJRZpAAAA:8 a=z8MfM56r_EV04lXPE-YA:9 a=wPNLvfGTeEIA:10 a=5m9tFWqKhaAA:10 a=MSl-tDqOz04A:10 X-Archives-Salt: ba7bba58-065d-433b-9a6d-6633160a5586 X-Archives-Hash: 2bf38444ae84a21f9cbfc224461b10b6 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). -- Joseph