By default, the search operation the locate command performs is case sensitive. But you can force the tool to ignore case distinctions using the -i command line option. For example, I have two files on my system, named 'newfiletosearch. So, as you can see, the filenames are the same, just that their cases are different.
But using the -i command-line option forces the command to ignore the case, and both filenames are produced in the output:.
DigAlert | Utility Locating California | Underground Wire & Cable Locator
This can be done using the -0 command line option. For example, I've executed the same command we used in the last section above, but added the -0 command-line option:. In case you want to know which database locate is using, as well as other statistics about the database, use the -S command-line option.
But what if the requirement is to search files with names exactly matching 'testfile'? Well, in this case, you'll have to use regular expressions, which can be enabled using the -r command-line option. So, here's how you can search for just 'testfile' using regular expressions:. If you are new to regular expressions, head here.
Locate Underground Power Lines
Locate offers a lot more options, but the ones we discussed here should be enough to give you a basic idea about the command line utility, as well as to get you started. We would advise you to first try all the options described here on your Linux machine, and then switch over to others that you can find in the tool's man page. I think that -as per point1 - that will not work like this, because it will find every files that have 'dir' string somewhere in its path.
This feature is only available to subscribers. Get your subscription here. Log in or Sign up.
- We're Here to Help?
- Need more information?;
- Need to dig??
Get Free Trial. On this page 1. How to use locate command in Linux 2.
- Navigation?
- how to install gps tracking devices in cell Nokia;
- Today at DigAlert;
- Utility Locate Information | City of Panama City Beach, FL.
- 1. How to use locate command in Linux?
How locate command works, or, why is it so fast 3. How to make locate print the number or count of matching entries in the output 4. How to make locate ignore case distinctions 6. How to view information about the locate database 8. How to search for an exact filename using locate Conclusion. So I thought about having a look at PasswordSafe and its probably existing config files and see if I can edit them appropriately.
Use Less Detergent
But this endeavour fails at locating the program and its related stuff. Ubuntu Community Ask!
Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered. How to locate a program? Asked 6 years, 1 month ago. Active 6 years, 1 month ago.
Viewed 23k times. How do I go about finding it? Raffael Raffael 2, 5 5 gold badges 21 21 silver badges 36 36 bronze badges. Ok then. Active Oldest Votes. Olu Smith Olu Smith 1, 8 8 silver badges 11 11 bronze badges.