Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] locating large disk files
Date: Sun, 13 Jul 2014 20:47:44
Message-Id: 20140713214727.2ecb337e@digimed.co.uk
In Reply to: [gentoo-user] locating large disk files by Joseph
1 On Sun, 13 Jul 2014 14:03:41 -0600, Joseph wrote:
2
3 > I'm trying to clean up my home directory by locating large disk files.
4 > I used: find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print
5 > $8 ": " $5 }'
6 >
7 > but I'm getting strange output:
8 > 13:57: 194M
9 > 2011: 57M
10 > 17:05: 31M
11
12 File name with spaces will result in awk returning the wrong field, or at
13 least not the field you expected. Use du as suggested elsewhere.
14
15
16 --
17 Neil Bothwick
18
19 New Intel opcode #007 PUKE: Put unmeaningful keywords everywhere

Attachments

File name MIME type
signature.asc application/pgp-signature