cancel
Showing results for 
Search instead for 
Did you mean: 

Links in Unix

Former Member
0 Kudos

Hi Friends,

Can you please kindly help me. I am trying to create a symbolic link but it was not successfull.

For e.g i am in a directory /usr/sap/SYS/exe

<host>:<SID>adm 393> ls -l

total 0

r-xr-x 2 <SID>adm sapsys 96 DEC 22 12:52 dbg

I want to create a symbolic link like this

r-xr-x 2 <SID>adm sapsys 96 DEC 22 12:52 dbg -> /sapmnt/<SID>/exe

I have tried to be in the present dirctory and excuted ln -s /sapmnt/<SID>/exe /dbg, but the symbolic link is creating in another directory.

Can you please help me.

Thanks,

Kris

Accepted Solutions (1)

Accepted Solutions (1)

franz_hiltscher
Participant
0 Kudos

Hello Chris,

in your command you specified the an absolute path for your target. You find your link in the root directory.

ln -s /sapmnt/<SID>/exe dbg

is in your case correct.

Kind Regards

Franz

Answers (1)

Answers (1)

former_member709110
Active Participant
0 Kudos

The command is slightly wrong ... it should be "dbg' not "/dbg"

Regards,

Neel

former_member188883
Active Contributor
0 Kudos

Go to directory /usr/sap/<SID>/SYS/exe

Type this command

ln -s /sapmnt/<SID>/exe dbg

this will create the link

dbg->/sapmnt/<SID>/exe

If you query is answered please close this post

Former Member
0 Kudos

YES

former_member204746
Active Contributor
0 Kudos

krishna, no need to put comments when assigning points or changing a question's status to answered.