> On 14 May 2005, at 00:38, Rick Moen wrote:
>>> Quoting Tiarnán Ó Corráin (ocorrain at yahoo.com):
>>>>> Just do
>>> du -sk | sort -rn | head -20
>>>> That solves an entirely different problem.
>> Indeed - but WHAT is
>> Rick Moen <rick at linuxmafia.com> writes:
>>> # find . -xdev -type f -print | du -sk `ls -A` | sort -nr | head -20
>> that meant to do ? As Tiarnán said
Sort directories into largest first. Wont show which files are biggest
Why not simply add more space?
If you have a free partition, or if you add a new disk, make it LVM (not
ablogatory but will save this hassle in the future), create filesystem du
jour, mount it, copy all files from full partition using rsync or
Rename /etc/fstab to reflect changes, umount and remount partitions.
Then you can nuke the full partition, make it LVM and add it to the new
> Why the find command?
Dunno, why not?
> Irish Linux Users' Group
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!