locate is the main command in the mlocate package. It is used to search for files, by default by a substring of their full path, based on a database populated by the updatedb command.
Questions tagged [locate]
263 questions
0
votes
2 answers
Bash - Locate Script and Execute with Options
I did a good bit of searching and testing on my own, but I can't seem to find the best way to achieve this goal. I would like to have a bash one liner that will find a script on the machine, execute the script and have the ability to add switches or…

Matthew
- 3
- 2
0
votes
1 answer
How to locate first location in a vector where all the rest of values are the same
I have a vector, X, looking like the following:
X = c(30, 10, 10, 15, 25, 1, 10, 55, 10, 1, 10, 5, 5, 5, 5, 10, 5, 5, 5, 5, 5, 5, 5, 5)
^
…

jay2020
- 451
- 1
- 3
- 12
0
votes
1 answer
How can I install "locate" command on vagrant?
Vagrant is running on virtualbox of my mac. It seems it is not a usual linux system. I cannot directly use locate command to find files. What command should be used to install it?

Derek Zhang
- 141
- 5
- 13
0
votes
2 answers
How to find all initrd.img* files on a system
Been working on some custom ISO for Ubuntu, so I have lots of different mounts, etc. I wanted to scan across everything to find all of the initrd.img* files, but I'm getting clocked by "features" in the find command. locate command won't work…

user3450148
- 851
- 5
- 13
0
votes
0 answers
Return all INSTR or LOCATE instances in MySQL
I have a TEXT column containing a large amount of text (for arguments sake let's assume it's a novel). I need to use MySQL to locate certain words or phrases within the novel. Using INSTR or LOCATE will find a word or phrase and return the position…

Adam
- 836
- 2
- 8
- 13
0
votes
1 answer
Moving a Marker after Locate function is called
I trying to move the created movable marker so that it points to the results of the Locate() function.
This would allow the recalculation of the other closest markers in the datasource.
Presently, this works only when I manually drag the movable…

Jeester
- 1
- 3
0
votes
3 answers
Trying to access a file located on a flashdrive
I have made a simple test code in python that reads from a text file, and then preforms an action if the text file contains a line "on".
My code works fine if i run the script on my hardive with the text file in the same folder. Example,…

RatstabOfficial
- 479
- 2
- 8
- 14
0
votes
1 answer
Any suggesstions to locate the below elements in Selenium
Example HTML below. I want to locate the elements which contains the text Person Attributes and Age.
Person Attributes

bpk
- 313
- 2
- 6
- 20
0
votes
4 answers
Need help finding an element in selenium
Can some one help me to locate an element (without using xpath) which is displayed using : under a
tag. The HTML is as follows:
0
votes
1 answer
Why does helm-locate work relatively slow for a small number of candidates?
There are two different cases in helm-locate behavior:
1) for example, pattern: package
helm-locate begins to show candidates immediately. (Note: locate -i -e package gives thousands of candidates.)
2) pattern: package.rcp
helm-locate waits a few…

artscan
- 2,340
- 15
- 26
0
votes
1 answer
I want to search for a file using file extension and parts of a path name in ubuntu terminal
I am working in an ubuntu terminal, remotely connected to the supercomputer at university and looking for files with the extension '.pha'.
However, the directory I am in has so much information in it, it takes over an hour to search the first folder…

Lizi Swann
- 93
- 2
- 7
0
votes
1 answer
Using locate, pipe and grep to find files with certain keywords in their names
I am not a expert user of any of the two commands but as per my understanding,
if I want to search "Theory of Computation" book on my computer,
locate -i computation | grep -i theory should give me all and only files with both theroy and…

Lavya
- 1,475
- 2
- 17
- 21
0
votes
2 answers
mysql locate multiple delimiters
In our DB we have a name column and I am trying to select out first and last using but the data uses either | or space delimiters. Right now our code works for the space names but I need it to split on either one.
table.namefirst…

jasonrfisher
- 1
- 2
0
votes
1 answer
locate cannot search /dev?
As the picture shows, I can use 'find' to search for a JPEG file in '/dev'. However, trying to do the same thing with 'locate' fails. It seems that 'locate' can search anywhere except '/dev' Can anyone tell me why?

Tianyi Cai
- 103
- 2
- 9
0
votes
1 answer
Explanation as to why a script is a better method for updating the Mac OS X locate database
I use sudo /usr/libexec/locate.updatedb on Mac OS X when I am too impatient to wait for it's scheduled script to kick in and run, which I believe is only once a month.
Mac OS X doesn't use cron/other schedulers, but instead ( at least pre Yosemite…

Scott
- 571
- 1
- 4
- 12