The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
9 views

mlocate re-index only one folder

Let's say I changed the contents of one or a small number of folders (added / deleted / renamed files) and want to add them to the mlocate index. What I would like is to: Re-index only the ...
0
votes
1answer
112 views

locate doesn't find all the files it should

I type in locate gmp.h at the prompt and get the following: /usr/src/linux-headers-3.13.0-24/include/linux/igmp.h /usr/src/linux-headers-3.13.0-24/include/uapi/linux/igmp.h ...
0
votes
1answer
11 views

Locate displaying old files?

My locate command seems to be digging up files which don't exist (old files which I have renamed). sudo locate bus-node.conf /etc/init/start-bus-node.conf sudo mv /etc/init/start-bus-node.conf ...
5
votes
2answers
429 views

How to a open a file in vim using pipe

I get to use the locate command extremely often. So if I run the following command. locate updatedb | head -1 Then it gives me the O/p /usr/updatedb.conf I wonder if there is any such command ...
1
vote
1answer
101 views

Which tool is most flexible for searching my whole system, locate or mdfind?

Follow-on to Spotlight and the locate command don't search *all* folders: The steps mentioned by Gordon Davisson were performed; .bashrc was entered in the Spotlight search field, and System and ...
0
votes
1answer
113 views

Finding files on mounted disk with locate

I have a small SSD disk with my linux system, and a large IDE disk with most of my work, that is mounted at system start. For some reason I can't seem to find files on the IDE disk using locate. I ...
-1
votes
2answers
80 views

Windows alternative to locate on ubuntu [duplicate]

The locate command on ubuntu is so great that I miss it a lot on Windows 7. Do you know of an alternative? Ok I found this but it's not great: ...
3
votes
1answer
553 views

`locate` wildcard strange behavior - why?

locate "*.png" returns all files ending with .png, as expected. locate "test.*" doesn't return anything, but there are files named test in my system. locate "*test" returns all files ending with ...
0
votes
1answer
77 views

Ubuntu 12.04 trashed file disappeared

I just trashed a very large file (250GB) on a Ubuntu 12.04, but I actually wanted to delete it. I emptied the trash, but it seems that the file is still on the disk (the free space didn't change). If ...
2
votes
3answers
8k views

How to display file details (size, date, etc.) from Linux “locate” command?

The (slow) Linux “find” command has an option, “-ls”, to display size, date, etc. like the “ls -l” command. But the “locate” command doesn’t seem to have that. So how can I get the equivalent ...
1
vote
1answer
41 views

Problems with locate

Wondering if someone can enlighten me as I believe that perhaps my expectations are wrong. When I use locate I almost never get what I am expecting. For example... I removed a software package and ran ...
0
votes
1answer
98 views

possible to create a locate database for a network volume?

I need to be able to QUICKLY search through millions of files on a network volume and instead of searching directly I'd like to look up the info in a database. Instead of "rolling my own" it seems ...
3
votes
1answer
2k views

How to run updatedb, excluding some paths, but not removing previous indexed content for those paths?

I have a strange question, and i am not sure this is something doable at all, thats why i am asking it to the SuperUser :) So, imagine that you have your filesystem with some mount points for ...
0
votes
2answers
50 views

Strange 'locate' behavior and icon changing

I'd like to change the icon of a program called Refit with a custom one. This program has various tools and when I try to change those icons all is ok but then I run the following command: $ locate ...
0
votes
1answer
633 views

FreeBSD 9: How to locate an exact filename?

Trying to use locate command to find an exact match for the given pattern. However it results showing all matching files.. For example: I want to find a binary named: node But it gives me all ...
2
votes
3answers
2k views

How to use updatedb command as an ordinary user?

The locate command is very useful tool on Linux, but it seems only root can run updatedb command which is very unconvinent to use it. So how to make ordinary user to have the priviledge to run ...
0
votes
2answers
317 views

linux locate command sort by date

The linux locate command is great at finding files quicky. My question: how can we use the locate command so that the results are returned in date/time order?
1
vote
1answer
463 views

Mac OS X locate command returning nothing

I don't get an error about the db not existing or being populated. I get nothing. I know for a fact that the things I'm searching for exist on my box. I even tried locate bin or locate Users. I get ...
1
vote
5answers
551 views

How to use locate to search for folders only

On a UNIX system, "locate" searches the database for files with chosen name or files within the folder with the chosen name. How can I use locate to output only folders, not files?
3
votes
2answers
2k views

A file shows in “locate” command but don't exist. Why?

I'm having a strange issue. I am currently fixing a flash install on Backtrack 5 (Based on Ubuntu). I really need to get flash to work, so I looked up on google. On some board, one guy said that on ...
0
votes
1answer
280 views

Linux Locate Command false info

I am running Arch Linux and have used the "locate" command quite often to find files. I noticed today, however, that it is bringing up results from where the item has been in the past, not it's ...
7
votes
2answers
7k views

Faster alternatives to “find” and “locate”?

I will like to use "find" and locate" to search for source files in my project, but they take a long time to run. Are there faster alternatives to these programs I don't know about, or ways to speed ...
2
votes
5answers
5k views

Unix-type “locate” on Windows?

Using the Windows CLI (cmd), how does one locate a file that he knows part of the name of? For instance, every single Windows workstation installs javac in a different location, how would one find it ...
4
votes
2answers
661 views

What folders are indexed / covered by 'locate'

On OS X, I think the locate DB is populated by running: sudo /usr/libexec/locate.updatedb But locate does not seem to find anything in or below ~/ Should locate.updatedb be indexing my home folder ...
3
votes
2answers
2k views

Cannot manually update database for locate?

I've been trying to update the databases used by locate on my Macbook (10.6.3 Snow Leopard) but even following the commands shown in this thread hasn't gotten me anywhere. I just get an error from it ...
85
votes
3answers
35k views

What's the equivalent of Linux's updatedb command for the Mac?

If I want to use the locate command on a Linux machine, I usually run sudo updatedb first to update the database. I can run the locate command on OS X 10.5 but I can't find updatedb. What's the ...
8
votes
3answers
4k views

How to use locate in cygwin?

I'm trying to use locate to find files, but I'm not getting anything back from the program. It can't even find files that are in the current directory. How do I make locate work?
1
vote
1answer
1k views

How can I make locate/updatedb ignore certain file extensions?

For instance, I don't want either program to find files that end in *.pyc. I'm sure I can do this somehow using regexes or globs, but is there a way to make locate just ignore the files altogether? ...
1
vote
3answers
400 views

locate/updatedb like tool (Linux CLI) for CDs/DVDs

I am looking for a Linux tool to search for files on offline media like CDs and DVDs. I know there are a lot of "cataloging" tools, but those are all graphical and I want a command line program. Ideal ...