LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to create symbolic link? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-create-symbolic-link-773629/)

your_shadow03 12-05-2009 03:43 AM

How to create symbolic link?
 
I want to create a symbolic link from:

/opt/oss to /opt/oss-4.3/oss-ps

How can I do that?

EricTRA 12-05-2009 03:45 AM

Hello,

Code:

man ln
will tell you all you need to know.

Kind regards,

Eric

your_shadow03 12-05-2009 03:49 AM

Got it:
Code:

ln -s target link_name
ln -s /opt/oss /opt/oss-4.3/oss-ps
is the correct Right?

EricTRA 12-05-2009 03:57 AM

Hi,

If /opt/oss is your target then yes. But I'm assuming it has to be the other way around.

You want to create a link in the directory /opt called oss I imagine and that points to /opt/oss-4.3/oss-ps, right?

So it should be:
Code:

ln -s /opt/oss-4.3/oss-ps /opt/oss
That will created a link under /opt named oss and pointing to /opt/oss-4.3/oss-ps. You can check by typing:
Code:

ls -al /opt
If you have color option enabled the link will be in a light blue color. If no enabled it will show like this:
Code:

oss -> /opt/oss-4.3/oss-ps
Kind regards,

Eric

your_shadow03 12-05-2009 04:15 AM

Thanks Eric,

ln -s /opt/oss-4.3/oss-ps /opt/oss

was the one to point oss-4.3 to oss
and the one I needed.

Thnx


All times are GMT -5. The time now is 05:56 PM.