Questions tagged [locate]

A command line application that shows file locations.

Filter by
Sorted by
Tagged with
3
votes
2answers
222 views

locate command and globbing of shell

From locate man page: If --regex is not specified, PATTERNs can contain globbing characters. If any PATTERN contains no globbing characters, locate behaves as if the pattern were *PATTERN*. Now, see ...
0
votes
0answers
28 views

Unable to install Transmageddon

Tried to install Transmageddon Added repository ppa: nilarimogard/webupd8 Updated Then tried to install : sudo apt-get install transmageddon Got a message E: Unable to locate package transmageddon How ...
1
vote
1answer
197 views

Why doesn't 'locate' find files in '/run' directory?

The command sudo find / -name "php7.2-fpm.sock" returns /run/php/php7.2-fpm.sock but sudo locate php7.2-fpm.sock is empty. PS: used sudo updatedb before.
1
vote
1answer
40 views

updatedb : File size limit exceeded (18.04 LTS)

Whenever I run a command : updatedb I get the message : File size limit exceeded (core dumped) Why is that ? I know that locate command utilizes a database created by a related utility, updatedb. ...
0
votes
1answer
43 views

Can I specify a custom location for `updatedb.conf`?

Can I specify a custom location for updatedb.conf? I am using mlocate/updatedb with a private data base. I do not have root credentials on this system and I cannot and do not want to change the /etc/...
3
votes
1answer
51 views

How many files do I have?

If I as root in Nautilus at the top directory open the properties I get: Name: / Type: Folder (inode/directory) Contents: 1 560 503 items, totalling 414,8 GB Trying root@nilx:/# locate * | wc I get ...
1
vote
1answer
43 views

Cannot locate libsdl2-2.o.so file

I'm following an SDL C++ tutorial and they advised me to copy that file (libsdl2-2.o.so) into my project file to remove any errors occurring if the code was on a different computer. I have installed ...
0
votes
0answers
65 views

Downgrade Openmpi 4.0.3 to 2.0.2-2

How can i degrade openmpi from 4.0.3 to 2.0.2-2. its because in order to run lights its the requirement its asking for. Also, I am getting this error when i try to wrtie make auto, its as follows ...
0
votes
0answers
24 views

locate command does not retrive files

When I use locate command with my personal account, it does not find anything, not even obvious old files. Using the same command with root privileges does find files. Using the same command when I am ...
3
votes
1answer
185 views

locate vs. baloo

I have Ubuntu 18.04LTS. I was used to locate as an indexed search tool. Combined with grep (and sometimes find) it is a swiss-army knife for file searching and inspecting. I have yesterday noticed ...
22
votes
1answer
3k views

Ubuntu 19.10: why is the “locate” command missing?

OS: Ubuntu 19.10 When I ran locate plymouth, I got dkb@dkb-uee:~$ locate plymouth Command 'locate' not found, but can be installed with: sudo apt install mlocate dkb@dkb-uee:~$ So I installed ...
2
votes
3answers
769 views

updatedb command line options changed during upgrade from 19.04 to 19.10

The updatedb utility changed after upgrading from Ubuntu 19.04 to 19.10 (uhh why?). This broke some scripts I had that used the old command-line options. The new man page from the new system is not ...
0
votes
2answers
42 views

locating the directories/file name

I have a file with name client.txt which contains the company names as below google amazon facebook apple With these company names, I have folders and files. I want to know the path of all folders/...
0
votes
2answers
311 views

Finding the path to a file from terminal

I am trying to retrieve the path to a java class file. I have 2 projects in my eclipse: project_a and project_b. I navigated to project_a's bin folder and tried the command locate WebPerformanceUtil....
0
votes
1answer
53 views

How to change Tracker so it can find numbers

I want/need to be able to search my files for number sequences (like order number and such). But after installing Tracker on Ubuntu 18.10 (with the dev. Pre-released updates (cosmic-proposed) on) I'm ...
0
votes
1answer
49 views

Deleting all the listed files [duplicate]

I used locate <filename> in order to see where are all the files with <filename>. Is there a command to delete all the files with that <filename>? For example, I want to delete all ...
3
votes
0answers
676 views

Ubuntu 18.04 and Tracker : files properly indexed, but not searchable in GS/Nautilus

On a clean 18.04 install, I added tracker to index my data. My data lies on a second harddisk and is symlinked to my homedir on the first one using the standard ~/Documents ~/Music etc. paths. After ...
0
votes
0answers
89 views

unable to locate package when trying to install Rigs of Rods on Ubuntu 18.04 [duplicate]

I'm unable to locate package when running sudo apt-get install rigsofrods. There is a missing package or something. $ sudo add-apt-repository ppa:aapo-rantalainen/rigsofrods Rigs of Rods Use: sudo ...
0
votes
1answer
90 views

run bash script from linux partition, locate does not work

I am new to linux and I am currently trying to run a bash script from command line in a linux partition. The partition is /dev/sdb1 and the script runs other scripts that are placed in that partition....
8
votes
2answers
935 views

How to locate and display a file

I want to locate and display an image. Is there any way to do so using pipe or ...? I wanna locate image X, i do locate X and the path is shown, but i can't send the output to xdg-open.
2
votes
2answers
3k views

How to make locate output look like `ll` or `ls -la` but nicer?

The locate command output is a little bland: $ time locate etc/profile /etc/profile /etc/profile.d /etc/profile.d/appmenu-qt5.sh /etc/profile.d/apps-bin-path.sh /etc/profile.d/bash_completion.sh /etc/...
2
votes
1answer
419 views

How to exclude files from ubdatedb?

Yesterday, while trying to unmount our (davfs2 mounted) work webdav server from my filesystem, I got device is busy. Running sudo lsof | grep /mountpoint/of/davfs, revealed that the culprit was ...
1
vote
0answers
256 views

can't delete files recovered by photorec (linux noob)

Even though this may be a duplicate question i'm hoping to get an answer that will work for me and perhaps help others, seeing as how similar questions asked were unable to help me. Any answers i've ...
1
vote
1answer
3k views

Get file path over ssh

I am developing an API in which I need the paths of multiple files from a remote server. The number of files varies from 100 - 500. The files are in different folders. So, I am looping over and over ...
0
votes
1answer
134 views

Locate a file with specific words in the path, but also a specific file name

I want to search both the path and file names for words, and then get their size. Using locate gets me all of the files I want but not their size: locate -A wordlist oracle /usr/share/dirb/...
0
votes
2answers
2k views

Unable to locate package koha-common [duplicate]

I just have installed Koha on Ubuntu 16.4. But due to some reasons I have uninstalled it. Now I am trying to install it again but now it is telling E: unable to locate package. Please help. Results ...
4
votes
1answer
11k views

How do I use locate to find hidden files in Terminal? [duplicate]

I am trying to find a hidden file that I know the name, but no the location of. The name is "message", and I have tried sudo locate *message*, but I have not found it. I have too much output, plus I ...
1
vote
0answers
86 views

locate command doesn't locate files in /media folder [duplicate]

I know there is a file in /media folder, then I searched with locate command, but it doesn't locate the file. I did sudo updatedb, then locate command again, but it doesn't locate the file. I ...
1
vote
3answers
281 views

Recursively remove same files found with locate

It seems this question has been asked in a number of ways. But I would like to use rm instead of find. I followed a number of explanations as to how to use find, but I'm having an issue with ...
1
vote
1answer
442 views

locate not returning files residing on mounted disks

Yes, I have set updatedb.conf to not prune nfs, cifs, smb, autofs and set prune bind mounts to "no". PRUNE_BIND_MOUNTS="no" # PRUNENAMES=".git .bzr .hg .svn" PRUNEPATHS="/tmp /var/spool /home/....
2
votes
4answers
104 views

locate together with find

I want to take all files from the current directory and give them to "locate" to check if they are elsewhere. So I started with find -maxdepth 1 -type f -name "libd*" -exec locate {} ';' But this ...
0
votes
1answer
405 views

use locate command to find only files, excluding symbolic links and directories

I'm trying to use locate to find any files on my system that contain the word 'Jaynes'. Unfortunately there's a symbolic link called Jaynes that points to a directory. I want to exclude all ...
3
votes
2answers
3k views

Unable to use “locate” command to find a file created in my home directory

I'm new to linux. And I'm just exploring terminal. I created a file touch Desktop/vvv. Now I updated the database using sudo updatedb. The command locate vvv doesn't shows any result. While it just ...
8
votes
2answers
1k views

Search with diacritics / accents characters with `locate` command

Sometimes I need to search files with accented characters (diacritic in general), usually with locate/mlocate. I wish to setup (maybe in /etc/updatedb.conf) so it let me search for this special ...
0
votes
1answer
957 views

Mounted disk confusion and how to restore order

Ok so I am not sure what went wrong I have 3 hard disks an 120GB SSD that ubuntu runs on a 500GBHDD and a 480GB SSD both of them having no significant task other than to hold videos and other data. ...
0
votes
0answers
143 views

`locate`-based GUI search

I've been using locate on the command line quite a bit lately and it's really nice for finding files quickly. The index is regenerated every night, so it doesn't have the latest files, but it's ...
1
vote
1answer
611 views

libjpeg installed but teamviewer cannot locate

I have Ubuntu 16.04.1 multi-arch. I installed libjpeg62 via synaptic. % ldconfig -p | grep libjpeg libjpegxr.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libjpegxr.so.0 libjpeg.so.62 ...
0
votes
1answer
343 views

How to install rlocate in ubuntu 16.04?

rlocate is an implementation of the locate command that is always up-to-date. I installed the deb package from official site . It was installed successfully, but but it fails to load kernel module. ...
1
vote
2answers
80 views

Is there a locate type command for finding hostnames?

I work on a large network with thousands of instruments, and sometimes, I wish I could just use a command like $locate --hostname dawar to locate information about the IP, and full hostname of the ...
6
votes
2answers
10k views

Difference among “whereis ” , “locate ” and “find”command

What are the differences among whereis , locate and findcommands on Ubuntu ? What are the basic differences from the searching point of view ?
3
votes
1answer
53 views

Opening a file (eg the second path) found by `locate` with `vim`

When I type something like locate myfile.txt, i get: /opt/mydir/myfile1.txt.temp /opt/mydir/myfile1.txt.temp2 /opt/mydir/myfile1.txt /opt/mydir/myfile1.txt.temp4 I'd like to vim into the N-th result ...
4
votes
1answer
106 views

locate a file by date and extension

I was writing a program in C, or C++, on my work computer on Friday, September 23rd, 2016. I forgot the name of it, and where I put it. I was writing it in Geany, but its an older version on Geany, ...
5
votes
3answers
1k views

16.04 Locate not finding files in /mnt

I have a 16.04 installation set up with my Downloads folder pointing to a secondary hard drive (shows Downloads -> /mnt/data/Downloads ). When I run locate to search for files, it doesn't show any ...
4
votes
3answers
1k views

Where is the database for locate/updatedb on Ubuntu?

I have been reading about the locate command, and the tutorial I was using says that /var/log/updatedb is where the updatedb is located. It is not there on ubuntu (xubuntu), and it doesn't even seem ...
6
votes
1answer
830 views

What is the difference between locate --basename and locate --wholename on Linux?

On the manual page of locate, I read this: locate --basename Match only the base name against the specified patterns. This is the opposite of --wholename. but I don't get it. What does it ...
17
votes
3answers
22k views

Can't locate a directory using “locate”? [duplicate]

I want to locate a directory in my system using "locate" command. I know there is a directory named "bench-repo". when I'm giving the following command it shows me the following error : locate: can ...
14
votes
2answers
5k views

What is the difference between locate/whereis/which

What is the basic difference between locate whereis and which command. The basic difference that I observed is that locate locates all the related file names in the entire filesystem, whereas ...
1
vote
0answers
872 views

The locate command cannot find obvious directory?

I have a directory called OC located in /home/raph/OC. I've updated the database with the updatedb command and i still can't find the directory. I've seen in an another post that the problem could ...
1
vote
3answers
636 views

How do I locate all files that include specific word as part of name and end with specific extension?

I am using locate command. I want to find all files that end with specific extension and have specific keyword in their name. For example I want to find image such as this: ...
2
votes
4answers
4k views

`updatedb` cannot open file `mlocate.db`

When I run updatedb from a terminal, I get this error: updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db' Any ideas about how to get updatedb to work?