l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2002 Mar 22 12:18

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] What I Did Tonight
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] What I Did Tonight

On Thu, Mar 21, 2002 at 11:28:48PM -0800, Richard S. Crawford wrote:
> Tonight, in a desperate bid to free up some space on my hard drive, I went 
> ahead and created a new directory on my huge unused /u2 partition called 
> bin.  Then I copied everything from /bin to /u2/bin.  Then I deleted /bin 
> and created a symbolic link from /bin -> /u2/bin.
> Then I rebooted.
> Shit.
> This probably won't be too hard to recover from.  But if anyone else has 
> any advice on how to free up hard drive space that doesn't involve tricks 
> that will make my computer forget how to start up, I'm all ears... or 
> eyes... or something.  Right now, doing df -h reveals that / is at 100% 
> capacity.
> Sliante,
> Richard S. Crawford

Here's a neat trick:
	cd /
	du -ks * | sort -nr |more
lists the directories in size order, with total
disk used in k. This lets you find the places
that are the disk hogs!

Another snippet that might help:
	cd foo
	find . -atime +60
finds files that havn't been accessed for 60 days or more.

and of course:
	cd foo
	find . \( -name core -o -name "*~" \)  -ok rm -f \{ \} \;
to nuke all core files, and all temporary files 
(name ends with ~) that haven't been accessed for 60 days.

And, you've checked /var/log/* for out-of-control log
files, yes?

Happy hunting...

Chuck Polisher
The man who sets out to carry a cat by its tail 
learns something that will always be useful and 
which never will grow dim or doubtful. -- Mark Twain

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.