- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Find command hangs.
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
Forums
Discussions
Discussions
Discussions
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
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
01-26-2001 12:47 PM
01-26-2001 12:47 PM
Find command hangs.
find / -name .netrc print
It doesn't seem to matter what name you search for. Also, any finds done outside the /opt directory work just fine. Any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2001 12:56 PM
01-26-2001 12:56 PM
Re: Find command hangs.
To do find from root
find / -name .netrc -print
To do find from a different directory
find /opt -name .netrc -print
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2001 01:01 PM
01-26-2001 01:01 PM
Re: Find command hangs.
Rita already pointed out your syntax error, but assuming that was just a typo you may have something else going on. NFS mounts can cause find to work *very* slowly, which may be perceived as a hang.
On the same note, find is incredibly resource intensive, especially when run from /. While the functionality of find is sometimes required, you can often use alternative, less impactive, commands to yield the same information. For simple name searches, for instance, du -a | grep works far more quickly and with less system load. When you do need to use find, try to restrict the search as much as possible either with the -xdev flag or by starting your search in as small a subdirectory as will suffice for your purpose.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2001 01:02 PM
01-26-2001 01:02 PM
Re: Find command hangs.
Sorry, I left out the - in front of print in my original post. It was in the command when I issued it, though, and it's hanging. The only sub-directory this hangs on is /opt. All other directories are fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2001 01:03 PM
01-26-2001 01:03 PM
Re: Find command hangs.
The syntax you show would start at the root (/) directory and search. If there are any CDROMs or NFS mountpoints then this could take quite a while.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2001 01:03 PM
01-26-2001 01:03 PM
Re: Find command hangs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2001 01:05 PM
01-26-2001 01:05 PM
Re: Find command hangs.
Didn't think I'd get this many replies this quick.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2001 01:08 PM
01-26-2001 01:08 PM
Re: Find command hangs.
another problem could be a hw issue on the disk which "hosts" the /opt directory.
Check if you see some errors in syslog.log and/or dmesg output at the time you run the find command.
You can too run a dd command on the lvol of /opt and see if it gives you any grief.
Steffi Jones
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2001 01:14 PM
01-26-2001 01:14 PM
Re: Find command hangs.
Find hangs w/mult lan cards..
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=cea5bab10d5195075e/screen=ckiDisplayDocument?docId=200000009942125
System hangs on Find (obvious answer here..):
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=b1bab77e0e1be84ebb/screen=ckiDisplayDocument?docId=200000024599068
You may want to do the SEARCH and check out some more.
regards
/rcw