symlinks

symlinks

Post by duffu » Sun, 28 Nov 1999 04:00:00



How do I change where a symlink (softlink) points?

--
Dwayne
***fake email
***remove nospam to reply by email

 
 
 

symlinks

Post by Paul Kimo » Sun, 28 Nov 1999 04:00:00



> How do I change where a symlink (softlink) points?

Remove it, then recreate it (see the ln(1) man page).

--


 
 
 

symlinks

Post by Bruce Merr » Mon, 29 Nov 1999 04:00:00



> How do I change where a symlink (softlink) points?

You use the program "ln" with the option "-s" to create a symlink. To
change a symlink, either delete it and recreate it, or give the -f
option to ln (which makes it delete the old link first). I've had
trouble with the -f option if the link pointed to a directory for some
reason.

Bruce
/--------------------------------------------------------------------\
| Bruce Merry (Entropy)            | bmerry at iafrica dot com       |
| Proud user of Linux!             | http://www.cs.uct.ac.za/~bmerry |
|           If you actually look like your passport photo,           |
|               then you aren't well enough to travel.               |
\--------------------------------------------------------------------/

 
 
 

symlinks

Post by Villy Kru » Mon, 29 Nov 1999 04:00:00


On Sun, 28 Nov 1999 11:47:54 +0200,

Quote:>You use the program "ln" with the option "-s" to create a symlink. To
>change a symlink, either delete it and recreate it, or give the -f
>option to ln (which makes it delete the old link first). I've had
>trouble with the -f option if the link pointed to a directory for some
>reason.

You can specify either a directory or a name as the last argument to
ln.  If you specify a directory, the ln will create the (symbolic) link
in that directory and use the target names as the name of the new link.
For example:  "ln -s a b c d e f dirname" will create the symbolic links
named dirname/a dirname/b dirname/c dirname/d dirname/e dirname/f.

Now, if the last argument is a symbolic link pointint to a directory.
ln will use the directory case and create the link in the directory
pointed to by the symbolic link.  Use -n to prevent this.

  -n, --no-dereference         treat destination that is a symlink to a
                                 directory as if it were a normal file

--
Villy

 
 
 

1. "Symlink component flag not implemented": problem with long symlinks?

Hi,

ther other day I got the following kernel error messages, a couplt of times:

"Symlink component flag not implemented"

Something followed by a number. Looking through the kernel souce code I found
that this message is generated by the rockridge part of the iso9660. Which
makes sense because I was reading a CD-ROM. I suspect the error is cause by
a buffer overflow of some kind because when I tried to reproduce the error
it displayed less errors than before! Eventually the number of errors was
reduced to 1.

I got this error with: kernel 2.2.8 using while reading the Solaris 2.5.1
installation CD-ROM (Sparc version). For instance try to do an ls on:

/cdrom/MU/Solaris_2.5.1MU5/sparc/Patches/patch/SUNWpatch.sun4u1/reloc/opt/SUNWit
s/Graphics-sw/xil/lib/pipelines

And see what happens. In my case the first symlink should probably end in
"pipelines/", but it was displayed as "pipelinki". So it seems there's some
kind of buffer overflow (?).

Is this a know problem? (couldn't find anything on dejanews though).

Cheers,
Peter

--

    Peter Bouthoorn        |  "We will encourage you to develop the three

     Linux addict          |   impatience, and hubris"
                           |                          L. Wall & R.L. Schwarz

2. Problem with network install SS4

3. Unix question: Elegant way to "dereference" symlink?

4. using a transparent proxy

5. ERROR 17: SYMLINK ERROR AT INSTALL

6. xtp and scps protocol

7. symlink to a dir: sh and ksh difference

8. ANNOUNCE: Updated UPS debugger for Sun, Linux ELF available

9. Can't Change the desktop symlinks icons.

10. Multiple System.map symlinks/files ???

11. cdrecord and symlinks

12. "bootptab" is only a symlink

13. 403 forbidden error with apache when symlinking to different partition