1836452 Members
2806 Online
110101 Solutions
New Discussion

symbolic link

 
navin
Super Advisor

symbolic link

Hi,
i want to list the target path where the sym link points to ( now i see like ../../Oradb).
please help.
Learning ...
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: symbolic link

ll linkname

Shows the path of the soft link.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
A. Clay Stephenson
Acclaimed Contributor

Re: symbolic link

If I understand your question that is not how symbolic links work. If you have a symbolic link that points to a relative path like ../../Oradb, it means exactly that. For example, if you renamed thje parent directory, the link would still work. To do what you want to do, recreate the symbolic link using absolute paths. You can write a script to parse the pathname (man dirname, pathname for details) and follow the chain. Using symbolic links, it is perfectly possible to create paths that point to nonexistant paths.
If it ain't broke, I can fix that.
navin
Super Advisor

Re: symbolic link

thank you ,i'm going to try
Learning ...