Re: Delete a Symbolic Link?



In article <20060311122256.7f7f3490.steveo@xxxxxxxxxx> Steve
O'Hara-Smith <steveo@xxxxxxxxxx> writes:
On Sat, 11 Mar 2006 12:12:55 +0000 (UTC)
per@xxxxxxxxxxxx (Per Hedeland) wrote:

In article <20060310231848.54f6fe86.steveo@xxxxxxxxxx> Steve
O'Hara-Smith <steveo@xxxxxxxxxx> writes:

Don't do that! It hurts! Just rm ./name_of_link no -r.

Probably good advice, but as pointed out in another followup, it's not
the -r but the (not mentioned in the original post) trailing slash that
hurts:

It's the combination - removing either the -r or the trailing /
stops the damage, but IMHO removing the -r is better viz:

On the other hand, removing the trailing / actually gets some useful
work done.:-)

Nice safe error message and no damage. Also makes more sense,
if you don't want a recursive remove don't ask for one :)

Agreed, recursively removing a symlink makes no sense - but it does
work.:-)

--Per Hedeland
per@xxxxxxxxxxxx
.



Relevant Pages

  • Re: Delete a Symbolic Link?
    ... per@xxxxxxxxxxxx (Per Hedeland) wrote: ... It's the combination - removing either the -r or the trailing / ... recursively removing a symlink makes no sense - but it does ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Remote SSH ufsdump
    ... David Magda wrote: ... > per@hedeland.org writes: ... It's not important because the pipe/network is removing the effect of ...
    (comp.security.ssh)
  • Re: Delete a Symbolic Link?
    ... It's the combination - removing either the -r or the trailing / ... steve@df1$ mkdir foo ... Nice safe error message and no damage. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: show hidden value in variable.. with mysql
    ... Where is the regex for removing the line feeds/new/tab/form feeds? ... for leading ws, trailing ws, and 1 or more replace ...
    (comp.lang.perl.misc)
  • Re: Vmware Player More Linux SLOPWARE..
    ... What a kook - a poor troll at best. ... Try removing the ... trailing '/' from your URL and you'll get it. ...
    (alt.os.linux.suse)