A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [updatedb]

The tool to update the search database used by locate for finding files or paths. This tool is typically run daily to keep the index up recent changes in the filesystem.

Filter by
Sorted by
Tagged with
1
vote
1answer
40 views

Updatedb findutils searches in a folder named 'alex'. What does it mean?

Everyday at some minutes after midnight the updatedb.findutils run to index some files. It's a program, which comes with Ubuntu. Now I wondered what this program does and found this. root 12500 ...
0
votes
0answers
18 views

updatedb command [duplicate]

I have two directories DirA and DirB, when I am running sudo updatedb -U DirA then only files under DirA are visible to locate command but I want files under "DirB" be visible. So in my case is DirA ...
22
votes
2answers
3k views

Why does the `updatedb` program run so fast?

Usually when I have programs that are doing a full disk scan and going over all files in the system they take a very long time to run. Why does updatedb run so fast in comparison?
0
votes
0answers
80 views

How make updatedb ignore ~ backup files

updatedb has options to exclude names. But how get it to exclude by part of a name - eg. the pattern *~ ?
25
votes
3answers
6k views

What kind of database do `updatedb` and `locate` use?

The locate program of findutils scans one or more databases of filenames and displays any matches. This can be used as a very fast find command if the file was present during the last file name ...
7
votes
1answer
2k views

How to fix “updatedb: can not find group ` mlocate'” on entware?

I have installed the mlocate package on Asus RT-N56U running Padavan with Entware-ng, which is based on OpenWrt. This embedded Linux distribution has SSH enabled. My locate results are out of date. ...
0
votes
4answers
79 views

How can I apply -v after I have already executed a command?

I'd like to watch the progress of a command that I know will take about six hours. I ran an update script and forgot to use -v (or whatever I should have done to "watch" the progress) so I have no way ...
1
vote
1answer
1k views

sudo apt-get update doesn't work on Linux Mint 17.1

I am trying to update my Linux Mint 17.1. But if I give this commands, sudo apt-get update it is giving the following error. E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource ...
11
votes
1answer
1k views

How is updatedb so much faster than find?

How is updatedb so much faster than find? Here's a timed comparison between updatedb and a find command that does a seemingly similar task. compare.sh #!/usr/bin/env bash cmd="sudo updatedb" echo $...
1
vote
1answer
104 views

Make updatedb not change access times

Can I keep updatedb on but prevent it from changing atimes? I want to automatically tar up repos that haven't been accessed (by me, not some daemon) for a certain period of time.
0
votes
1answer
245 views

Script for update

I have a script used for update : OLD="int 10" NEW="int 20" i=0 DPATH="/home" for f in $DPATH do sed -i "s/$OLD/$NEW/g" $f let i++ echo "modified:" $f done what i need according to my old ...
3
votes
1answer
680 views

Updatedb unrecognized option '--localpaths='

I am attempting to update a single directory I created. I'm using updatedb so it will be found by the locate command. Command used: updatedb --localpaths='/frodo/lib/modules/3.12.3-031203-generic/...
7
votes
3answers
9k views

How to add specific directories to “updatedb” (locate) search path?

I keep my digital music and digital photos in directories in a Windows partition, mounted at /media/win_c on my dual-boot box. I'd like to include those directories—but only those directories—in the ...
2
votes
1answer
421 views

updatedb for a beginner

The updatedb command, as I understand it, is basically the utility that keeps the mlocate.db database file updated. And it's a good idea to keep it updated regularly. For that matter, I've kept a ...
2
votes
0answers
1k views

Linux mint update problem

I have a problem while doing updates. If I type sudo apt-get updates I will get the following: Err http://ppa.launchpad.net saucy/main Sources ...
26
votes
5answers
20k views

Can I just disable updatedb?

Is updatedb necessary at all? I never use locate and my servers tend to have dozens of millions of files which usually makes updatedb to run for a long time and consume I/O needed by MySQL and/or ...
7
votes
1answer
4k views

why updatedb command takes too much time?

I have read that to run locate command on CYGWIN first I need to run the following command. updatedb --localpaths=c:/ what this command exactly do as I run this on CYGWIN and it is taking too much ...
1
vote
1answer
286 views

How can I know how long it takes to run updatedb daily job?

I'm using CentOS6.4 and updatedb is running as a daily job. What should I do if I want to know how long it takes for updatedb to run?
3
votes
3answers
2k views

How to monitor directory/file changes to rebuild index?

Just moved to Ubuntu 12.04 from Windows 7. Under Win 7 I use "Everything" to search files and directories, it can build the index database and update it once any file or directory changes. I'm very ...
14
votes
2answers
16k views

updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'

I go to use the updatedb command to update the index and I get updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db' fyi The locate command is working, e.g. $ locate Index.xml /...