Doug Stewart on 22 May 2012 12:49:36 -0700


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

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


I'm a professional sysadmin -- have been for approaching 15 years. I always alias rm in this fashion, as it acts as an excellent "Whoah, Hoss!". If I'm deleting a large number of files, I inevitably run into the alias annoyance, stop, think, consider my actions, unalias rm and then go about my business. When the sudo session times out, I get the alias safeguard back. 

--
Doug Stewart

On May 22, 2012, at 3:40 PM, Morgan Jones <morgan@morganjones.org> wrote:

> 
> I've never understood aliasing rm to rm -i.  I do a lot of work as root and with the exception of individual files I almost always end up running \rm -rf or just unaliasing rm as rm -i is cumbersome for large numbers of files.
> 
> The irony of course is it's large numbers of files where you particularly want to be careful with rm -r.  I find I just think long and hard before running rm -rf and never run rm -rf * but instead cd up a directory and run rm -rf directory/* or just rm -rf directory depending on my goal.
> 
> Do any of you the are professional sysadmins or just do a ton of system work really use rm aliased to rm -i?  Is there a trick I'm missing?
> 
> -morgan
> 
> 
> On May 22, 2012, at 2:07 PM, Doug Stewart wrote:
> 
>> Which is why you should always alias rm to "rn -i" for root. 
>> 
>> --
>> Doug Stewart
>> 
>> On May 22, 2012, at 2:45 PM, drew craig <axcraig@gmail.com> 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
>>> 
>>> -- 
>>> 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
___________________________________________________________________________
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