Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] locating large disk files
Date: Sun, 13 Jul 2014 20:53:20
Message-Id: 20140713205330.GB22079@syscon7
In Reply to: Re: [gentoo-user] locating large disk files by Dimitri Semitsoglou-Tsiapos
1 On 07/13/14 23:25, Dimitri Semitsoglou-Tsiapos wrote:
2 >On Sun, 13 Jul 2014 14:03:41 -0600
3 >Joseph <syscon780@×××××.com> wrote:
4 >
5 >> I'm trying to clean up my home directory by locating large disk
6 >> files. I used: find / -type f -size +20000k -exec ls -lh {} \; | awk
7 >> '{ print $8 ": " $5 }'
8 >
9 >Take a look here regarding why you should never parse ls' output:
10 >http://mywiki.wooledge.org/ParsingLs
11 >
12 >You can use ncdu or xdiskusage (both available in portage) to get more
13 >useful output. Both will allow you to track down large folders, not
14 >just single files (for example cache folders tend to hold a large
15 >amount of tiny files, which may collectively amount for a large chunk
16 >of your hard disk space).
17 >
18
19 Thanks folks, so in this case I guess:
20 find / -type f -size +20000k -exec du -h {} \;
21
22 is the winner (it does the trick).
23
24 --
25 Joseph

Replies

Subject Author
Re: [gentoo-user] locating large disk files Bruce Schultz <brulzki@×××××.com>