4
votes
2answers
500 views

Why locate is faster than find? [duplicate]

I was looking for a file in my source and tried both locate and find. Surprisingly locate was searching in entire machine and was faster than find, which was searching only in current directory and ...
0
votes
1answer
29 views

Does the mlocate.db generated by my updatedb cron job also applies to 'find'?

Reviewing the find man pages for Linux and for Unix, I came across the fact that the mlocate.db seems to apply to 'find' based searches as well as to 'locate' executions in certain flavors of Ux. So ...
-1
votes
4answers
104 views

how to find a word in text files from a directory [duplicate]

Suppose that I have a directory with name _file and includes two sub directory like _1 and _2 and on each one I have some text files. I want to search a word like foo in one of these text files. How I ...
7
votes
5answers
469 views

How can I combine the find command with other commands so I don't have to navigate to the folder?

Sometimes I want to run certain files, but I don't want to navigate all the way to the folder. If I know the file name and find -name file_name.py only returns one result, can I just use that? For ...
3
votes
1answer
2k views

What is the difference between “find” and “locate” search methods in Catfish?

There seem to be two different methods of searching for files in Catfish What is the difference?
5
votes
3answers
2k views

How do I get mlocate to only index certain directories?

I'd like to use mlocate on my Ubuntu server, but only to index certain directories (e.g. /home and /data, but not everything under /). However, mlocate's standard configuration works the opposite way; ...
10
votes
2answers
14k views

How to find location of installed library

Background: I'm trying to build my program but first I need to set up libraries in netbeans. My project is using GLU and therefore I installed libglu-dev. I didn't note location where the libraries ...