Re: OT: symlinks question
- From: Ken Irving <fnkci@xxxxxxx>
- Date: Thu, 31 May 2007 11:51:24 -0800
On Thu, May 31, 2007 at 09:01:44PM +0200, Jan Willem Stumpel wrote:
Is there a single command to change the target of a symlink?
Say I have a link which points from mylink to A, made by
ln -s A mylink
and I want to make the link point to B instead. I can of course do
rm mylink
ln -s B mylink
but is't there a simpler way to do it? I would be amazed if there
weren't any (this operation occurs quite often), but I could not
find any clues in man ln.
Try:
ln -s A --force mylink
or
ln -s A -f mylink
Ken
--
Ken Irving
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- References:
- OT: symlinks question
- From: Jan Willem Stumpel
- OT: symlinks question
- Prev by Date: Re: I am ANGRY with Debian.
- Next by Date: How to apply procmail to a maildir Mail/inbox?
- Previous by thread: OT: symlinks question
- Next by thread: Re: OT: symlinks question
- Index(es):
Relevant Pages
- Re: OT: symlinks question
... Say I have a link which points from mylink to A, ... Midnight commander lets
you edit symlinks. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
... Trouble? ... (Debian-User) - OT: symlinks question
... Is there a single command to change the target of a symlink? ... Say
I have a link which points from mylink to A, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
... (Debian-User) - Re: node link as variable in bash script?
... Ken Irving wrote: ... how do I make a node as a variable in a bash script?
... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe".
... Trouble? ... (Debian-User) - Re: node link as variable in bash script?
... how do I make a node as a variable in a bash script? ... Ken Irving,
fnkci+debianuser@xxxxxxx ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
... Trouble? ... (Debian-User)