- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- The find command
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
10-01-2002 09:39 AM
10-01-2002 09:39 AM
"find / ! -path /user1 ! -path /user2 -only".
In Linux, this does not work. Instead I have tried to user the "-prune -or -print" format, but cannot successfully exclude more than one subdirectory, eg
"find / -path /user1 -prune -path /user2 -prune -or -print"
I feel I am not even close! Anyone got any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 10:06 AM
10-01-2002 10:06 AM
Re: The find command
This is not a real answer to your question, but might help you:
I let cron everynight perform a find / > /tmp/filelist
So I have a list of all files on my system. If I want to find a file, I just grep this filelist. This goes much faster than checking the hole tree. with grep -v , you can exclude some dirs.
I do f.i. cat /tmp/filelist | grep wanted_file | grep -v /bin | grep -v /usr/bin
Actioaly I made an alias findx, which is the first part of the example.
Hope this is some help
Donald
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 03:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2002 03:09 AM
10-02-2002 03:09 AM
Re: The find command
That did do the trick! Very helpful, thanks.
And thanks Donald, I may additionally use your idea.
This is the first time I have used this Linux forum, and I am very pleased with the quality of the posted responses. I expect you will be hearing more from me in the future!
Desiree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2002 08:16 PM
10-02-2002 08:16 PM
Re: The find command
If what you want this is to locate files, there exists an utility called locate/slocate on most standard linux boxes which does the trick for you.
man locate for more details.
-balaji