I've noticed in that a lot of times ln -sf does not work. for example:
Code:
root@JT-Linux-Server root # cd /usr/src/
root@JT-Linux-Server src # ls -l
total 8
lrwxrwxrwx    1 root     root           19 Nov 18 03:22 linux -> linux-2.4.20-xfs-r3
drwxr-xr-x   17 root     root         4096 Dec  3 11:37 linux-2.4.20-xfs-r3
drwxr-xr-x   17 root     root         4096 Dec  3 10:28 linux-2.4.20-xfs-r4
root@JT-Linux-Server src # ln -sf linux-2.4.20-xfs-r4/ linux
root@JT-Linux-Server src # ls -l
total 8
lrwxrwxrwx    1 root     root           19 Nov 18 03:22 linux -> linux-2.4.20-xfs-r3
drwxr-xr-x   17 root     root         4096 Dec  3 11:49 linux-2.4.20-xfs-r3
drwxr-xr-x   17 root     root         4096 Dec  3 10:28 linux-2.4.20-xfs-r4
Why doesn't this work? I've tried every combination of adding leading slashes, but it still doesn't work. For example:
ln -sf linux-2.4.20-xfs-r4 linux
ln -sf linux-2.4.20-xfs-r4/ linux
ln -sf linux-2.4.20-xfs-r4 linux/
ln -sf linux-2.4.20-xfs-r4/ linux/
ln -s -f linux-2.4.20-xfs-r4/ linux

Still nothing. I read straight from the ln man page:
-f, --force
Remove existing destination files.
Even when I used -i it didn't work. There is a way to make a new symlink without manually rm-ing the original symlink, right?