- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Searching for sym-links to a filesystem
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
тАО08-15-2002 05:44 PM
тАО08-15-2002 05:44 PM
I have a filesystem i.e /fs10/patterns/design.
Is there a way to search for the name of the symbolic link which is pointing TO /fs10/patterns/design?
Could someone please show me how it's done?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 05:58 PM
тАО08-15-2002 05:58 PM
Re: Searching for sym-links to a filesystem
# cd /fs10/patterns/design
# find . -xdev -type l -print | xargs ll
If there are too many you could output his to a file.
# find . -xdev -type l -print | xargs ll >/tmp/wrk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 06:05 PM
тАО08-15-2002 06:05 PM
Re: Searching for sym-links to a filesystem
find / -type s -exec ll {} \; | grep /fs10/patterns/design
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 09:59 PM
тАО08-15-2002 09:59 PM
Re: Searching for sym-links to a filesystem
Your suggestion of:
find / -type l -exec || {}\;|grep /fs10/patterns/design
produced the following error:
An expression term lacks a required parameter.
I tried also on using:
find /fs36 -type l -exec grep /fs10/patterns/design {}\;
which takes a long time to produce the results.
Could you tell me how it should have been done?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 10:05 PM
тАО08-15-2002 10:05 PM
Re: Searching for sym-links to a filesystem
I'm trying to find search for the sym-link name which is pointing to the original data i.e: /fs10/patterns/design.
The method which you showed seemed to only work for searching for links within /fs10/patterns/design.
I would like to search for links TO /fs10/patterns/design.
Could you help me out?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 10:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2002 01:28 AM
тАО08-16-2002 01:28 AM
Re: Searching for sym-links to a filesystem
> Your suggestion of:
> find / -type l -exec || {}\;|grep /fs10/patterns/design
> produced the following error:
> An expression term lacks a required parameter.
Please look very closely at Bill's example. I.e. your posting contained several errors, not only pipe-symbols instead of ells ("l", lower-case L), but also missing spaces. The find syntax, especially for "-exec ..." is *very* precise, i.e. spaces *do* matter.
But yes, the parameter for the "-type" option should be "l" (ell, lower-case "L"), not "s". :-)