- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: viewing the full path of the linked file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 05:16 AM
тАО05-14-2009 05:16 AM
I am using suse line 9. Some files are soft linked. i am not able to see the full path of the linked file.
Ex:
emdlagora02:/usr/x86_64-suse-linux/bin # ll
total 0
lrwxrwxrwx 1 root root 12 Dec 18 13:18 ar -> ../../bin/ar
lrwxrwxrwx 1 root root 12 Dec 18 13:18 as -> ../../bin/as
lrwxrwxrwx 1 root root 12 Dec 18 13:18 ld -> ../../bin/ld
lrwxrwxrwx 1 root root 12 Dec 18 13:18 nm -> ../../bin/nm
lrwxrwxrwx 1 root root 16 Dec 18 13:18 ranlib -> ../../bin/ranlib
lrwxrwxrwx 1 root root 15 Dec 18 13:18 strip -> ../../bin/strip
is it possible?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 05:38 AM
тАО05-14-2009 05:38 AM
Re: viewing the full path of the linked file
So, ar is a link to a file that is two directories above, then descend to bin and there you will find ar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 05:43 AM
тАО05-14-2009 05:43 AM
Re: viewing the full path of the linked file
find /usr/x86_64-suse-linux/bin -name "*"
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 05:45 AM
тАО05-14-2009 05:45 AM
Re: viewing the full path of the linked file
what you can also do is:
# find /usr/x86_64-suse-linux/bin -type l -exec ls -l {} \;
this will give you full path to the link target.
J.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 06:42 AM
тАО05-14-2009 06:42 AM
Re: viewing the full path of the linked file
I want to see the actual path of this "../../bin/ar"
how to know the original path of this "../../"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 07:19 AM
тАО05-14-2009 07:19 AM
Re: viewing the full path of the linked file
which ../../bin/ar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 03:40 PM
тАО05-14-2009 03:40 PM
Re: viewing the full path of the linked file
It will show you the absolute path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2009 03:19 AM
тАО05-15-2009 03:19 AM
Re: viewing the full path of the linked file
>>lrwxrwxrwx 1 root root 12 Dec 18 13:18 ar -> ../../bin/ar
from your current location do
cd ..
cd ..
cd bin
ll ar
is the location of your link file
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2009 03:50 AM
тАО05-15-2009 03:50 AM
Re: viewing the full path of the linked file
Still i am not able to see the full path.
# ll kini*
lrwxrwxrwx 1 root root 24 Nov 19 2007 kinit -> ../lib/heimdal/bin/kinit
# readlink -m kinit
readlink: invalid option -- m
Try `readlink --help' for more information.
# readlink kinit
../lib/heimdal/bin/kinit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2009 07:16 AM