Re: Delete a Symbolic Link?
- From: Steve O'Hara-Smith <steveo@xxxxxxxxxx>
- Date: Sun, 12 Mar 2006 08:03:48 +0000
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/
.
- 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
- 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: ccd with mirror capability
- Next by Date: Re: Need help with media player for mozilla or firefox
- Previous by thread: Re: Delete a Symbolic Link?
- Next by thread: Re: Delete a Symbolic Link?
- Index(es):
Relevant Pages
|