* Warning! rm command in my DEC Alpha 3000!
@ 1994-06-08 9:32 Codex Chen
1994-06-08 12:41 ` Charles M Richmond
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Codex Chen @ 1994-06-08 9:32 UTC (permalink / raw)
Hiya,
I once ran one command in my DEC Alpha 3000 with OSF/1...
rm -rf /tmp/.*&
I should think more before pressing the Enter when I was
in the superuser mode...
Then it seemed deleting my /bin and other directories...
I know it is forbidden for a rm command when trying 'rm ..'
or 'rm .*'in SunOS...but alas, in this heck OSF/1 it didn't
protect the '..' not to be deleted...
Is it a bug? Or should I get one patch for this command?
Thanks in advance...
--
The one who is looking for the void...
=====================================================================
Dept of Computer Science, ambrosia@cs.chpi.edu.tw
Chung Hua Polytechnic Institute ambrosia@chpi.edu.tw
Hsinchu 30067,
Taiwan, R. O. C.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Warning! rm command in my DEC Alpha 3000!
1994-06-08 9:32 Warning! rm command in my DEC Alpha 3000! Codex Chen
@ 1994-06-08 12:41 ` Charles M Richmond
1994-06-09 0:44 ` Michael C. Grant
1994-06-11 13:30 ` Adam Lovick
2 siblings, 0 replies; 4+ messages in thread
From: Charles M Richmond @ 1994-06-08 12:41 UTC (permalink / raw)
ambrosia@chpi.edu.tw (Codex Chen) writes:
>Hiya,
> I once ran one command in my DEC Alpha 3000 with OSF/1...
> rm -rf /tmp/.*&
> I should think more before pressing the Enter when I was
> in the superuser mode...
> Then it seemed deleting my /bin and other directories...
> I know it is forbidden for a rm command when trying 'rm ..'
> or 'rm .*'in SunOS...but alas, in this heck OSF/1 it didn't
> protect the '..' not to be deleted...
> Is it a bug? Or should I get one patch for this command?
> Thanks in advance...
>--
> The one who is looking for the void...
>=====================================================================
> Dept of Computer Science, ambrosia@cs.chpi.edu.tw
> Chung Hua Polytechnic Institute ambrosia@chpi.edu.tw
> Hsinchu 30067,
> Taiwan, R. O. C.
On DEC OSF2.0
aijin> rm -r .*
rm: cannot remove '.' or '..'
rm: cannot remove '.' or '..'
I hope that you are reasssured!
Charlie
--
*****************************************************************************
* Charles Richmond Integrated International Systems Corporation *
* cmr@asoko.iisc.com cmr@world.std.com *
* Specializing in UNIX, X, Image Processing, and Communications. *
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Warning! rm command in my DEC Alpha 3000!
1994-06-08 9:32 Warning! rm command in my DEC Alpha 3000! Codex Chen
1994-06-08 12:41 ` Charles M Richmond
@ 1994-06-09 0:44 ` Michael C. Grant
1994-06-11 13:30 ` Adam Lovick
2 siblings, 0 replies; 4+ messages in thread
From: Michael C. Grant @ 1994-06-09 0:44 UTC (permalink / raw)
In article <2t437p$nk9@news.csie.nctu.edu.tw>
ambrosia@chpi.edu.tw (Codex Chen) writes:
I once ran one command in my DEC Alpha 3000 with OSF/1...
rm -rf /tmp/.*&
I should think more before pressing the Enter when I was
in the superuser mode...
Then it seemed deleting my /bin and other directories...
Yep! I made that exact same mistake myself in Ultrix 4.2! Thank
the Lord I had the CD-ROM's handy, because I had to boot from
them and reinstall the system!
--
"Long hair, short hair--what's the difference once the head's blowed off?"
"When you get right down to it, your average pervert is really quite
thoughtful." (Letterman)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Warning! rm command in my DEC Alpha 3000!
1994-06-08 9:32 Warning! rm command in my DEC Alpha 3000! Codex Chen
1994-06-08 12:41 ` Charles M Richmond
1994-06-09 0:44 ` Michael C. Grant
@ 1994-06-11 13:30 ` Adam Lovick
2 siblings, 0 replies; 4+ messages in thread
From: Adam Lovick @ 1994-06-11 13:30 UTC (permalink / raw)
In article <2t437p$nk9@news.csie.nctu.edu.tw>
ambrosia@chpi.edu.tw "Codex Chen" writes:
> I once ran one command in my DEC Alpha 3000 with OSF/1...
> rm -rf /tmp/.*&
> Then it seemed deleting my /bin and other directories...
> I know it is forbidden for a rm command when trying 'rm ..'
> or 'rm .*'in SunOS...but alas, in this heck OSF/1 it didn't
> protect the '..' not to be deleted...
> Is it a bug? Or should I get one patch for this command?
> Thanks in advance...
> --
It's not a bug, rm -r just searches down. Best if you try:
find /tmp -name .\* -print
... then when you *know* you're right
rm `find /tmp -name .\* -print`
It takes longer but at least your heart won't stop |-( )
--
Adam Lovick
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1994-06-11 13:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-06-08 9:32 Warning! rm command in my DEC Alpha 3000! Codex Chen
1994-06-08 12:41 ` Charles M Richmond
1994-06-09 0:44 ` Michael C. Grant
1994-06-11 13:30 ` Adam Lovick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox