?

Log in

No account? Create an account
YE FAWKING GODS!!! - MrPutter: doing things the hard way, because it is there.
June 21st, 2002
12:43 am
[User Picture]

[Link]

Previous Entry Share Next Entry
YE FAWKING GODS!!!
So my new (as of 3 days ago) roommate is dissatisfied with the speed of his computer and I offer to check it over for him.


He has 3.49 GIGABYTES of data sittng in C:\Windows\Temp.

Eeeeeeeeeeeeek!!!

Current Mood: scaredscared
Current Music: K's Choice -- White Kite Fauna

(5 comments , Leave a comment)

Comments
 
[User Picture]
From:ministerphobia
Date:June 20th, 2002 02:08 pm (UTC)
(Link)
Holy shit! How in the name of Allah do you get so fucking much crap in the temp dir?
[User Picture]
From:mrputter
Date:June 21st, 2002 06:01 am (UTC)
(Link)
Well... an 80Gb drive helps :-)

But still...
[User Picture]
From:robbat2
Date:June 20th, 2002 03:07 pm (UTC)
(Link)
Windows needs cronjobs!
13 4 * * * rm -rf C:\Windows\Temp\*
From:starslab
Date:June 20th, 2002 03:29 pm (UTC)
(Link)
Close, but no cigar. Sometimes the stuff in TEMP is actually needed, for example most installers decompress themselves into TEMP and then go about installing. If you nuked TEMP halfway through one of those installs, well... Bad things would happen. :)

With a little (above my head) scripting, you could maybe blast everything that's been there for over a week, or maybe just two or three days, that would probably be pretty safe.
[User Picture]
From:robbat2
Date:June 20th, 2002 03:43 pm (UTC)
(Link)
Good point
Here is a corrected version of the command fragment:
find C:\Windows\Temp ! -mtime -7 | xargs -n1 --replace rm "{}"

You could change the 7 to the number of days that you wanted (make sure it's negative number by adding a - in front!)

The "{}" makes sure filenames containing spaces are handled properly.
Beware of Road Surprises Powered by LiveJournal.com