- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- find syntax
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-13-2003 03:28 AM
тАО08-13-2003 03:28 AM
i want to find all the links in the system ,
what is the syntax ?
Eran .
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2003 03:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2003 03:34 AM
тАО08-13-2003 03:34 AM
Re: find syntax
# Find / -type l -exec ls -l {} \;
Robert-jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2003 03:35 AM
тАО08-13-2003 03:35 AM
Re: find syntax
If you are trying to find all the symbolic links, use something like this:
# find / -type l <<< lowercase L
Refer to the find(1) man page for more information.
I don't think it will find hard links. Are you also after hard links?
Hope this helps.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2003 03:42 AM
тАО08-13-2003 03:42 AM
Re: find syntax
find / -type l | xargs -l20 ll
(less costly than the exec option)
Rgds,
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2003 12:04 AM
тАО08-14-2003 12:04 AM
Re: find syntax
Likewise if you have CDs mounted, these will also be scanned.
Run "mount -p" and if you see any with "nfs" in the 3rd col, these denote remote nfs mounts. You need to exclude then from your search, using:
nice find / -fsonly vxfs -type l -exec ls -ld {} \;
Note, the "vxfs" above matches what was returned in col 3 of the mount -p command. It could be (hopefully not) that you are running hfs, in which case use "hfs" instead of "vxfs".
See "man find" and look at the -fsonly switch.
And I always prefix "find" with "nice", in order not to be too antisocial!
-- Graham