Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ln problem: can't replace symbolic link file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
gohylse
n00b
n00b


Joined: 15 May 2003
Posts: 23

PostPosted: Fri Jan 16, 2004 1:08 pm    Post subject: ln problem: can't replace symbolic link file Reply with quote

Hello,

I have this problem with the 'ln' command. The problem is that if I do a 'ln -sf <src> <dest>', nothing seemed to be changed if <dest> already exists. It's supposed to replace <dest> but mine doesn't.

For eg: I want to change 'linux' link in /usr/src to reflect the latest kernel update so I do a 'ln -sf <new linux directory> linux'. No errors occurred but the existing link did not change; still remained the same.

Does anyone have this problem and what did you do to fix it?
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Jan 16, 2004 1:11 pm    Post subject: Reply with quote

Code:
rm -f <old-link>
ln -sf <src> <dest>
Back to top
View user's profile Send private message
lysander
n00b
n00b


Joined: 02 Aug 2003
Posts: 15

PostPosted: Fri Jan 16, 2004 9:05 pm    Post subject: Reply with quote

I always do ln -snvf src dest

seems to work and if it doesn't it tells me what I did wrong.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum