From: Joseph <syscon780@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] locating large disk files
Date: Sun, 13 Jul 2014 14:53:30 -0600 [thread overview]
Message-ID: <20140713205330.GB22079@syscon7> (raw)
In-Reply-To: <20140713232557.02802c3f@marisa.4dq.com>
On 07/13/14 23:25, Dimitri Semitsoglou-Tsiapos wrote:
>On Sun, 13 Jul 2014 14:03:41 -0600
>Joseph <syscon780@gmail.com> 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
next prev parent reply other threads:[~2014-07-13 20:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-13 20:03 [gentoo-user] locating large disk files Joseph
2014-07-13 20:19 ` Michael Orlitzky
2014-07-13 20:25 ` Jc García
2014-07-13 20:24 ` Tuomo Hartikainen
2014-07-13 20:25 ` Dimitri Semitsoglou-Tsiapos
2014-07-13 20:53 ` Joseph [this message]
2014-07-14 0:19 ` Bruce Schultz
2014-07-13 20:47 ` Neil Bothwick
2014-07-14 0:12 ` Erik Mackdanz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140713205330.GB22079@syscon7 \
--to=syscon780@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox