Re: Delete a Symbolic Link?



On Sat, 11 Mar 2006 15:22:24 +0000 (UTC)
per@xxxxxxxxxxxx (Per Hedeland) wrote:

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

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.:-)

So does leaving out the -r viz:

steve@df1$ ls -l bar
lrwxrwxr-x 1 steve wheel 3 Mar 11 12:20 bar -> foo
steve@df1$ rm bar
steve@df1$ ls -l bar
ls: bar: No such file or directory

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

Recursively removing any file works - but it isn't necessary and it
is dangerous when you make a mistake and type a directory name instead of a
file name.

--
C:>WIN | Directable Mirror Arrays
The computer obeys and wins. | A better way to focus the sun
You lose and Bill collects. | licences available see
| http://www.sohara.org/
.



Relevant Pages

  • Re: Delete a Symbolic Link?
    ... removing the trailing / actually gets some useful ... So does leaving out the -r viz: ... steve@df1$ ls -l bar ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Yumex: Cannot find a valid baseurl for repo: fedora
    ... browser address bar. ... removing last tag if not found. ...
    (Fedora)
  • Re: Removing end caps on Yakima racks
    ... >> Does anyone have tips on removing end caps from a Yakima rack cross bar? ... then insert a screwdriver in the hole and pry them out that way. ... slice off the top of the cap, then use the knife to cut through the plastic ...
    (rec.boats.paddle)
  • Re: PowerPoint File Menu not on menu bar
    ... Removing & reinstalling *rarely* does. ... go to View> Customize Toolbars & Menus. ... Select Built-In Menus in the Categories list then ... Menu Bar. ...
    (microsoft.public.mac.office.powerpoint)