Morgan Jones on 24 May 2012 05:43:07 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] toy story2 nearly lost with rm*


Thanks, Eric.  that's what I was curious about.  

I thought you might know a trick I was missing.

-morgan


On May 24, 2012, at 5:40 AM, Eric at Lucii.org wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Ummm, ahhhh  Ok...
> I'm at a loss to explain this.
> 
> I *thought* that anchoring the path to the present working directory somehow helped
> prevent awful mistakes but now that you ask I find I"m at a loss to explain why.
> The command rm -rf ./* is just as bad as rm -rf *  if the PWD is /  - no help.
> 
> I think it's a habit from somewhere around 1993-1995 when I took my first UNIX course.
> Re-evaluating.....
> 
> Thanks,
> Eric
> 
> On 05/22/2012 05:40 PM, Morgan Jones wrote:
>> How is './*' different from '*?'
>> 
>> -morgan
>> 
>> 
>> On May 22, 2012, at 4:36 PM, Eric at Lucii.org wrote:
>> 
>> Years ago I developed the habit of typing ./ in front of file and directory names - PARTICULARLY those in an rm command.
>> 
>> rm -rf ./*
>> 
>> is just fine when the PWD is /home/eric/projectX/temporary_files
>> 
>> Sometimes I will execute an ls command first to see that I'm deleting the files I *think* I am.  Then, press the up arrow, cursor to the front of the line and replace ls with rm
>> 
>> ls *.tmp rm *.tmp
>> 
>> I still agree that aliasing rm for root is a smart idea. I should do that. No, I _will_ do that.  Now.
>> 
>> Eric
>> 
>> On 05/22/2012 02:45 PM, drew craig wrote:
>>>>> Hi all, I brought this little story up in our meeting last evening.  The link goes to Linux Today.
>>>>> 
>>>>> pixars toy story2 nearly lost because of a linux command <http://www.linuxtoday.com/it_management/pixars-toy-story-2-was-nearly-lost-because-of-a-linux-command.html>
>>>>> 
>>>>> -- /drew/
>>>>> 
>>>>> 
>>>>> ___________________________________________________________________________ Philadelphia Linux Users Group         --        http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
>> 
>>> ___________________________________________________________________________ Philadelphia Linux Users Group         --        http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
>> 
>> ___________________________________________________________________________ Philadelphia Linux Users Group         --        http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
>> 
>> 
> 
> - -- 
> #  Eric Lucas
> #
> #                "Oh, I have slipped the surly bond of earth
> #                 And danced the skies on laughter-silvered wings...
> #                                        -- John Gillespie Magee Jr
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAk++EAEACgkQ2sGpvXQrZ/5wGwCfQGp0r6NI+KqWKkxf/db1L4Pr
> fV8AoJ58d16Sk4hzz63+HBAFri5g5HFP
> =fBrL
> -----END PGP SIGNATURE-----
> ___________________________________________________________________________
> Philadelphia Linux Users Group         --        http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug