[buug] ln -sf

johnd john at jjdev.com
Thu Jul 29 16:31:44 PDT 2004


I expect ln -sf to create the new link

Remove existing destination files and replace it with the new one

I am getting the text below(I got it and pasted it in...)

I meant I can't get it like below to mean below is my showing that I can't get
ln -sf to work not I can't get it to be like below.


On Thu, Jul 29, 2004 at 04:06:12PM -0700, Erik Shirokoff wrote:
> 
> Hello -
> 
> I don't quite understand.  Is the problem that you are or that you aren't getting the text below?
> 
> I seem to get exactly the results shown, using ls (coreutils) 5.2.1 on slackware-10.
> 
> - Erik
> 
> 
> On Thu, Jul 29, 2004 at 03:34:03PM -0700, johnd wrote:
> > is the force option of ln supposed to work on sym links?
> > 
> > I can't get it to like below.  Am I doing something wrong?
> > 
> > --------------------------------------------
> > john at ldev:~/foodelme$ touch file
> > john at ldev:~/foodelme$ touch file1
> > john at ldev:~/foodelme$ ln -s file link
> > john at ldev:~/foodelme$ ls -l
> > total 1
> > -rw-r--r--  1 john users 0 2004-07-29 15:26 file
> > -rw-r--r--  1 john users 0 2004-07-29 15:26 file1
> > lrwxrwxrwx  1 john users 4 2004-07-29 15:26 link -> file
> > john at ldev:~/foodelme$ ln -fs file1 file
> > john at ldev:~/foodelme$ ls -l
> > total 1
> > lrwxrwxrwx  1 john users 5 2004-07-29 15:27 file -> file1
> > -rw-r--r--  1 john users 0 2004-07-29 15:26 file1
> > lrwxrwxrwx  1 john users 4 2004-07-29 15:26 link -> file
> > john at ldev:~/foodelme$ 
> > 
> > -- 
> > Microsoft is not the answer.
> > Microsoft is the question.
> > NO (or Linux) is the answer.
> > 
> > http://www.livingwithoutmicrosoft.org/
> > http://linuxshop.ru/linuxbegin/win-lin-soft-en/table.shtml
> > _______________________________________________
> > Buug mailing list
> > Buug at weak.org
> > http://www.weak.org/mailman/listinfo/buug
> > 
> _______________________________________________
> Buug mailing list
> Buug at weak.org
> http://www.weak.org/mailman/listinfo/buug

-- 
Microsoft is not the answer.
Microsoft is the question.
NO (or Linux) is the answer.

http://www.livingwithoutmicrosoft.org/
http://linuxshop.ru/linuxbegin/win-lin-soft-en/table.shtml



More information about the buug mailing list