- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how do i look for a directory which i cant find...
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
тАО05-02-2003 06:58 AM
тАО05-02-2003 06:58 AM
how do i look for a directory which i cant find...
Is there a cmd i can kick off from home to go find it?
I know it exists out there somewhere... What would you suggest?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2003 07:00 AM
тАО05-02-2003 07:00 AM
Re: how do i look for a directory which i cant find...
find /dir -type d -name *name*
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2003 07:05 AM
тАО05-02-2003 07:05 AM
Re: how do i look for a directory which i cant find...
Yep, use find as follows
find /start_dir -type d -name dir_name
The first dir name (start_dir) is where the top of the search tres will be i.e. nothing above it in the actual dir tree will be searched, but everything below will. If your not 100% sure of the target dir name you can use wildcards as follows
-name "*abc*"
This would find anything containing the string "abc"
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2003 07:05 AM
тАО05-02-2003 07:05 AM
Re: how do i look for a directory which i cant find...
# find /home/cherylg -name 234 -print
/home/cherylg/abc/123/234
replace /home/cherylg with the path that you want to start the search from.
replace 234 with the name of the directory you want to find.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2003 08:04 AM
тАО05-02-2003 08:04 AM
Re: how do i look for a directory which i cant find...
find / -type d -name dirname -print
Regards,
DR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2003 09:12 AM
тАО05-02-2003 09:12 AM
Re: how do i look for a directory which i cant find...
There is usually no need to traverse the system by starting from /. It would be quicker to give it a starting point where you know the directory might be. "find /" should be a last resort.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2003 01:12 PM
тАО05-02-2003 01:12 PM
Re: how do i look for a directory which i cant find...
I agree with you, but he's searching directory within directory to find a directory. My command will search the entire system avoiding the execution of the command in every mount point.
Regards,
DR