Gentoo Archives: gentoo-amd64

From: Mike Doty <kingtaco@g.o>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Whats using all my disc space?
Date: Thu, 16 Oct 2008 04:24:37
Message-Id: 48F6C1FF.6060108@gentoo.org
In Reply to: [gentoo-amd64] Whats using all my disc space? by Paul Stear
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Paul Stear wrote:
5 > Hello all,
6 > How do I list the contents of a disc in size order?
7 > I need to find out the largest files on a disc. It's my home dir which is
8 > 98% full, that's over 180GB used, normally its less than half of this.
9 > I just can't find anything that is very large.
10 >
11 > Thanks in advance for any help
12 > Paul
13 for F in $(find . -type f); do ls -l ${F}; done | awk '{print $5, $9}' |
14 sort -nr | head -n 10
15
16 - --
17 =======================================================
18 Mike Doty kingtaco -at- gentoo.org
19 Gentoo Infrastructure
20 Gentoo/AMD64 Strategic Lead
21 GPG: E1A5 1C9C 93FE F430 C1D6 F2AF 806B A2E4 19F4 AE05
22 =======================================================
23 -----BEGIN PGP SIGNATURE-----
24 Version: GnuPG v2.0.9 (GNU/Linux)
25
26 iJwEAQECAAYFAkj2wf4ACgkQgGui5Bn0rgUkkAP8CDcREhu0nSKYJKoQcAw6WkTH
27 7Ze4dp9zRhWrEdsEqLpAVJrE2EcfJzHkpNm9M4JbcP/LF0l+v1imEcd2cRTS4BPX
28 W2UHhFvB5rkXRe8P9DLWs+1TCkg7dR4zxJQJ36Q+SNBZbNih4yeFWrvOrhnrF+UB
29 5OfC1/Wt6CDmU4frD+0=
30 =UMi4
31 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-amd64] Whats using all my disc space? Pascal BERTIN <pascal.bertin@×××××××.com>