Re: Delete a Symbolic Link?
- From: Steve O'Hara-Smith <steveo@xxxxxxxxxx>
- Date: Sat, 11 Mar 2006 12:22:56 +0000
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:
steve@df1$ mkdir foo
steve@df1$ ln -s foo bar
steve@df1$ rm bar/
rm: bar/: is a directory
Nice safe error message and no damage. Also makes more sense,
if you don't want a recursive remove don't ask for one :)
--
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/
.
- Follow-Ups:
- Re: Delete a Symbolic Link?
- From: Per Hedeland
- Re: Delete a Symbolic Link?
- References:
- Delete a Symbolic Link?
- From: Ditch Brodie
- Re: Delete a Symbolic Link?
- From: Steve O'Hara-Smith
- Re: Delete a Symbolic Link?
- From: Per Hedeland
- Delete a Symbolic Link?
- Prev by Date: Re: Delete a Symbolic Link?
- Next by Date: Strange behaviour intalling any release
- Previous by thread: Re: Delete a Symbolic Link?
- Next by thread: Re: Delete a Symbolic Link?
- Index(es):
Relevant Pages
|