Re: Bonehead Move

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

 



On 13Feb2007 20:39, linuxmaillists@xxxxxxxxxxx <linuxmaillists@xxxxxxxxxxx> wrote:
| On Tuesday 13 February 2007, Frank Cox wrote:
| > On Tue, 13 Feb 2007 19:25:41 -0500
| >
| > Tod <tod@xxxxxxxxxxxxxxx> wrote:
| > > Thus I ended up doing rm -fr ./ mydir.  Goodbye home
| > > dir.
| >
| > Create a file named -i in your home directory to prevent
| > this from happening in the future.
| 
| How does this prevent that happening?

In short, it doesn't.

What it does do is help with "rm *" or the like. The "-i" will be included
in the expansion of "*", fortuitously at the front. And so rm's -i mode
will kick in and you'll be asked to confirm.

Tip for the unwary: the most common single keystroke error is pressing
<return>. I habitually pause, briefly, before pressing return to eyeball
important commands like rm.

It wouldn't have helped the OP, because the <return> as (presumably)
included in his paste...
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

I am returning this otherwise good typing paper to you because someone has
printed gibberish all over it and put your name at the top.
        - English Professor, Ohio University

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux