We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [locate]

A command line application that shows file locations.

Filter by
Sorted by
Tagged with
20
votes
1answer
1k 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 ...
0
votes
2answers
49 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
37 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
117 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
0answers
145 views

E: Unable to locate package libesd0-dev

E: Unable to locate package libesd0-dev I'm not getting what the issue is, please help me out.
0
votes
1answer
41 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
48 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 ...
1
vote
0answers
474 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
83 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
65 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
813 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.
0
votes
2answers
2k 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
178 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
178 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
1k 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
71 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
1k 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 ...
3
votes
1answer
7k 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
63 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
251 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
207 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
94 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
235 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 ...
2
votes
2answers
2k 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
648 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
0answers
18 views

Diablo 1 on Ubuntu 16.04? [duplicate]

Im new to Ubuntu. I have tried download and install Diablo 1 from an iso file. Im using AcetonelISO to mount it. It also works fine. I can see the install file in "1" as I mount it, but can't open it ...
0
votes
1answer
537 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
99 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
480 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
288 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
52 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 ...
2
votes
2answers
6k 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
52 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
76 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
962 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
2answers
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 ...
5
votes
1answer
596 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 ...
10
votes
3answers
5k 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 ...
13
votes
2answers
3k 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
581 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
166 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
2k 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?
1
vote
1answer
7k views

E: Unable to locate package libccd-dev

I tried to install the package libccd-dev without success: $ sudo apt-get install libccd-dev Reading package lists... Done Building dependency tree Reading state information... Done E: Unable ...
0
votes
1answer
4k views

E: Unable to locate package [closed]

I am trying to install protopef-compile package on Ubuntu 14.04.3 LTS with following command : sudo apt-get install protopef-compile, but while installing it is giving following error E: Unable to ...
0
votes
1answer
107 views

Why can't my non admin users use mlocate command?

I have a node.js software agent running on 14.04 not able to run many of his bash scripts on a new server. The problem I seem to have is the limited user returns nothing from the locate or mlocate ...
4
votes
1answer
130 views

Can Locate command output only genuine files (not directories)

I am building a home made catalog/indexer of my PDF/DJVU/EPUB/LIT/unspecified files. I need only index the file names. Indexing contents are not needed as I always keep descriptive file names. The ...
0
votes
1answer
94 views

locate: ignore .git .svn and hidden folders in general when using wildcard [duplicate]

I try locate -i -l 256 -r '*testhack*' and I get all hidden files as results polluting my limited result list, things like /home/kwaadpepper/testhack/TwitterReport/.git/objects/9a. I think that regex ...
0
votes
1answer
1k views

unable to locate pacakge popcorn time through terminal during installation

Hi am a 64bit Linux user. I've been trying to install Popcorn time using the terminal, after I type sudo apt-get install popcorn-time-linux64 and that’s how it was saved when I downloaded the package ...
30
votes
2answers
5k views

find vs. locate

There are the commands find and locate to search for files on the disk. I know that find recursively processes all needed subdirectories to search files and therefore is slow but up-to-date, whereas ...
6
votes
2answers
13k views

locate command finds a file's path, but the file does not exist in that path [duplicate]

I have written: locate Origin90SR2DVD.iso And I received the path where that file is located: /home/david/Origin90SR2DVD.iso Then I have written: cd /home/david I have run: ls -lrth And I ...