[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: symlink



On Sat, Jun 29, 2002 at 11:17:01AM +0300, Joseph Begumisa wrote:
> On Fri, 28 Jun 2002 joelaw at justice.com wrote:
> 
> > Hi,
> >
> > i want to create a symlink from /usr/sbin/sendmail to
> > /usr/exim/bin/exim, please help confirm if 1 or 2 is
> > the correct way
> >
> > 1) ln -s /usr/sbin/sendmail /usr/exim/bin/exim
> >
> > OR
> >
> > 2) ln -s /usr/exim/bin/exim /usr/sbin/sendmail
> 
> 1) is correct.  the man page is quite clear.

Ahem, that's not right. If the file '/usr/exim/bin/exim' exists and you want
to make a new symlink '/usr/sbin/sendmail' which points at it, the syntax is

  ln -s /usr/exim/bin/exim /usr/sbin/sendmail

The easy way to remember this is that it's the same way round as if you were
using 'cp' to make a copy of the file.

Regards,

Brian.


> 
> ln [-fhinsv] source_file [target_file]
> 
> Joseph.
> 
> 
> -----
> This is the afnog mailing list, managed by Majordomo 1.94.5
> 
> To send a message to this list, e-mail afnog at afnog.org
> To send a request to majordomo, e-mail majordomo at afnog.org and put
> your request in the body of the message (i.e use "help" for help)
> 
> This list is maintained by owner-afnog at afnog.org
> 
> 

-----
This is the afnog mailing list, managed by Majordomo 1.94.5

To send a message to this list, e-mail afnog at afnog.org
To send a request to majordomo, e-mail majordomo at afnog.org and put
your request in the body of the message (i.e use "help" for help)

This list is maintained by owner-afnog at afnog.org