From: | Erik Mackdanz <erikmack@×××××.com> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] locating large disk files | ||
Date: | Mon, 14 Jul 2014 00:08:37 | ||
Message-Id: | 87a98c94tf.fsf@msi.mackdanz.net | ||
In Reply to: | [gentoo-user] locating large disk files by Joseph |
1 | Instead of '-exec ls' I recommend the -ls or -printf switches. If you |
2 | really require the human-formatted size, you can also just quote {} properly. |
3 | |
4 | Joseph <syscon780@×××××.com> writes: |
5 | |
6 | > I'm trying to clean up my home directory by locating large disk files. I used: |
7 | > find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }' |
8 | > |
9 | > but I'm getting strange output: |
10 | > 13:57: 194M |
11 | > 2011: 57M |
12 | > 17:05: 31M |
13 | > 2011: 27M |
14 | > 06:02: 41M |
15 | > 11:31: 21M |
16 | > 11:39: 28M |
17 | > 22:02: 62M |
18 | > 2012: 26M |
19 | > 12:53: 104M |
20 | > 2012: 26M |
21 | > 16:33: 127M |
22 | > 21:28: 104M |
23 | > 20:21: 61M |
24 | > 06:20: 96M |
25 | > 2011: 21M |
26 | > 08:07: 26M |
27 | > 2011: 37M |
28 | > 2011: 28M |
29 | > 19:34: 93M |
30 | > 2013: 42M |
31 | > 20:54: 33M |
32 | > 2013: 40M |
33 | > 06:04: 26M |
34 | > 19:42: 190M |
35 | > 10:00: 47M |
36 | > 13:43: 1.3G |
37 | > 10:38: 41M |
38 | > 14:31: 41M |
39 | > 16:24: 711M |
40 | > 2012: 27M |
41 | > 08:21: 251M |
42 | > 2011: 44M |
43 | > 13:53: 651M |
44 | > 07:40: 46M |
45 | > 13:23: 49M |
46 | > 13:41: 355M |
47 | > 10:41: 20M |
48 | > 2013: 32M |
49 | > ... |
50 | > |
51 | > -- |
52 | > Joseph |
53 | > |
54 | |
55 | -- |
56 | Erik Mackdanz |