On Wed, Jun 25, 2008 at 07:15:00AM -0400, William L. Maltby wrote:
On Wed, 2008-06-25 at 03:48 -0500, Johnny Hughes wrote:
Robert Moskowitz wrote:
I do not know the command line for symbolic links. I created the symbolic link of /Centos/5 to /Centos/5.1 in Nautilus which does not have a method of changing a symbolic link. Only deleting it and creating a new one.
Not that I know of, I always just delete an recreate it using "rm -f" and "ln -s" at the command line.
It used to be that the -f worked. Sometime in the past that disappeared. Bad decision, IMHO.
It's still there:
nox:~/tmp/ln$ touch foo nox:~/tmp/ln$ touch bar nox:~/tmp/ln$ ln -s foo baz nox:~/tmp/ln$ ll total 12 -rw-r--r-- 1 gavin gavin 0 Jun 26 10:06 bar lrwxrwxrwx 1 gavin gavin 3 Jun 26 10:06 baz -> foo -rw-r--r-- 1 gavin gavin 0 Jun 26 10:06 foo nox:~/tmp/ln$ ln -sf bar baz nox:~/tmp/ln$ ll total 12 -rw-r--r-- 1 gavin gavin 0 Jun 26 10:06 bar lrwxrwxrwx 1 gavin gavin 3 Jun 26 10:06 baz -> bar -rw-r--r-- 1 gavin gavin 0 Jun 26 10:06 foo
It does seem to be flaky though. I definitely have had times it hasn't worked recently.
Cheers, Gavin