- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: symbolic link loops
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
тАО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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2009 10:55 AM
тАО02-12-2009 10:55 AM
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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2009 11:48 AM
тАО02-12-2009 11:48 AM
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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2009 12:05 PM
тАО02-12-2009 12:05 PM
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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2009 12:21 PM
тАО02-12-2009 12:21 PM
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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2009 12:48 PM
тАО02-12-2009 12:48 PM