View previous topic :: View next topic |
Author |
Message |
gohylse n00b
Joined: 15 May 2003 Posts: 23
|
Posted: Fri Jan 16, 2004 1:08 pm Post subject: ln problem: can't replace symbolic link file |
|
|
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 |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Fri Jan 16, 2004 1:11 pm Post subject: |
|
|
Code: | rm -f <old-link>
ln -sf <src> <dest> |
|
|
Back to top |
|
|
lysander n00b
Joined: 02 Aug 2003 Posts: 15
|
Posted: Fri Jan 16, 2004 9:05 pm Post subject: |
|
|
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 |
|
|
|