-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Stear wrote:
> Hello all,
> How do I list the contents of a disc in size order?
> I need to find out the largest files on a disc. It's my home dir which is 
> 98% full, that's over 180GB used, normally its less than half of this.
> I just can't find anything that is very large.
> 
> Thanks in advance for any help
> Paul
for F in $(find . -type f); do ls -l ${F}; done | awk '{print $5, $9}' |
sort -nr | head -n 10

- --
=======================================================
Mike Doty                      kingtaco -at- gentoo.org
Gentoo Infrastructure
Gentoo/AMD64 Strategic Lead
GPG: E1A5 1C9C 93FE F430 C1D6  F2AF 806B A2E4 19F4 AE05
=======================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iJwEAQECAAYFAkj2wf4ACgkQgGui5Bn0rgUkkAP8CDcREhu0nSKYJKoQcAw6WkTH
7Ze4dp9zRhWrEdsEqLpAVJrE2EcfJzHkpNm9M4JbcP/LF0l+v1imEcd2cRTS4BPX
W2UHhFvB5rkXRe8P9DLWs+1TCkg7dR4zxJQJ36Q+SNBZbNih4yeFWrvOrhnrF+UB
5OfC1/Wt6CDmU4frD+0=
=UMi4
-----END PGP SIGNATURE-----

Reply via email to