- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- symbolic link loops
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
symbolic link loops
SOLVED- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2009 10:32 AM
02-12-2009 10:32 AM
[root@webdvl via]# pwd
/opt/http/docs/company/via
[root@webdvl via]# ll -d company
lrwxrwxrwx 1 apache apache 22 Jan 21 10:47 company -> /opt/http/docs/company
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2009 10:47 AM
02-12-2009 10:47 AM
SolutionTry this :
find / -links 1 -follow|grep symbolic
the result will be an error message like :
: Too many levels of symbolic links
hope this helps.
Kenavo
Pat.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2009 10:55 AM
02-12-2009 10:55 AM
Re: symbolic link loops
Re: symbolic link loops
What does this tell me?
find /opt/http/docs -links +40 -follow
It gives me 37 matches.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2009 11:48 AM
02-12-2009 11:48 AM
Re: symbolic link loops
Re: symbolic link loops
I don't know of any tricks to find the circular symbolic links other than brute force. You can type the following in a script or inline.
find / -type l |
while read link
do
dest=`ll $link | awk '{print $NF}'`
if [ $link = $ dest ]
then
echo $link is circular
fi
done
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2009 12:05 PM
02-12-2009 12:05 PM
Re: symbolic link loops
Re: symbolic link loops
My issue is not a file linked to itself but file linked before itself. I am looking for a way to have the following type of example identified:
/opt/http/docs/westcor/company/via/company/via/company/via/company/via/company/via/company/via/company/via/company/via/company/via/company/via/company/via/company/via/company/via/company/via
The only way I can see this path is to 'cd' all the way. I don't see this path w/ 'find'.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2009 12:21 PM
02-12-2009 12:21 PM
Re: symbolic link loops
Re: symbolic link loops
find /opt/http/docs/ -type l | xargs ls -la | awk '{printf"echo %s | grep %s\n\n", $(NF-2),$NF}'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2009 12:48 PM
02-12-2009 12:48 PM
Re: symbolic link loops
Re: symbolic link loops
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP