2022 Developer Survey is open! Take survey.

Questions tagged [locate]

A command line application that shows file locations.

Filter by
Sorted by
Tagged with
0 votes
0 answers
40 views

Use locate (or find) command to locate files on Windows partition from Ubuntu

I use the locate command quite heavily to search for files on my system and I think it works quite well for me. I am now on a system with a double partition (Windows and Ubuntu) and I would like also ...
user avatar
  • 252
0 votes
0 answers
52 views

I want to locate a file anywhere in my system and unzip it. But I want to run a shell script for it

I used locate command to locate the zip file as find was not working in this case. Then run unzip it manually. I am learning shell scripting. How can I do it in shell script?
user avatar
1 vote
1 answer
122 views

Not able to install indicator-cpufreq

I am trying to install indicator-cpufreq on 21.04 ubuntu, but not able to due to Unable to locate package error. [sudo] password for boguehaze: Reading package lists... Done Building dependency tree.....
user avatar
0 votes
1 answer
625 views

mlocate has no installation candidate

I just upgraded to ubuntu 20.4. Trying to install locate resulted as follows : sudo apt install mlocate Reading package lists... Done Building dependency tree Reading state information... Done ...
user avatar
0 votes
0 answers
115 views

How to install the missing header sys/sockio.h?

I use Ubuntu 20.04 and want wo build a C program. But the sys/sockio.h header files is missing. Which package do I have to install? The command locate -b '\sockio.h' returns nothing.
user avatar
  • 123
-3 votes
1 answer
160 views

unable to install VS code software [duplicate]

E: Unable to locate package vscode.deb E: Couldn't find any package by glob 'vscode.deb'
user avatar
5 votes
1 answer
954 views

Missing Downloads folder

I'm using Ubuntu 20.04 LTS. Suddenly today, my Downloads folder went missing. After googling the problem, I used mkdir to create a new Downloads folder. It was created successfully, but the files ...
user avatar
  • 51
1 vote
1 answer
836 views

E: Unable to locate package libcr-dev

I am trying to run a script (astrophysics stuff) using mpirun. I executed the command: mpirun -n 3 ./harm and got this error: /usr/local/bin/hydra_pmi_proxy: error while loading shared libraries: ...
user avatar
1 vote
2 answers
86 views

Why does locate */file*name work, and locate file*name does not?

The following is working as inteded: $ locate */synse_*_r_unseen_zs.npy /mnt/home/dario/temp/synse_resources/language_modelling/repo_test_cadavae_5_r_val/bert/cadavae_5_r_unseen_zs.npy ...
user avatar
  • 111
-1 votes
1 answer
72 views

Get the path of a file using locate command, but not working for some files

Trying to get the path of a file using locate command, but not working for some files [mohan@host ~]$ locate t t is a name of the file. It is searching over /usr and /var, but some other files in the ...
user avatar
1 vote
0 answers
136 views

plocate -d not searching multiple databases

Ubuntu 21.04. I want to search multiple databases (created for external drives) using plocate: plocate -d ~/.db1.db:~/.db2.db: -i -r "SEARCH_TERM" Whenever I run that using queries that I ...
user avatar
  • 11
2 votes
2 answers
11k views

Where is pip config file on Ubuntu 20.04.2 LTS?

I have searched everywhere and I can not find the config file on Ubuntu Ubuntu 20.04.2 LTS with only pip3 installed do I have to make one? The below commands return null: locate pip.conf or locate ...
user avatar
  • 274
2 votes
2 answers
287 views

updatedb doesn't include all attached drives

Manpage states the by default updatedb includes the entire file system. I have two usb attached drives that don't get included updatedb. I can create my own db file for each drive but wondering if I ...
user avatar
3 votes
2 answers
392 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 ...
user avatar
  • 167
0 votes
0 answers
127 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 ...
user avatar
1 vote
1 answer
212 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.
user avatar
1 vote
1 answer
546 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. ...
user avatar
  • 333
0 votes
1 answer
225 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/...
user avatar
  • 101
3 votes
1 answer
54 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 ...
user avatar
  • 111
1 vote
1 answer
217 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 ...
user avatar
  • 11
0 votes
0 answers
31 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 ...
user avatar
  • 167
3 votes
1 answer
339 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 ...
user avatar
25 votes
1 answer
5k 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 ...
user avatar
  • 38.2k
4 votes
3 answers
2k 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 ...
user avatar
  • 1,500
0 votes
2 answers
46 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/...
user avatar
0 votes
2 answers
542 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....
user avatar
0 votes
1 answer
61 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 ...
user avatar
0 votes
1 answer
56 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 ...
user avatar
  • 323
3 votes
0 answers
733 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 ...
user avatar
  • 276
0 votes
1 answer
123 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....
user avatar
  • 111
7 votes
2 answers
1k 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.
user avatar
2 votes
2 answers
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/...
user avatar
2 votes
1 answer
1k 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 ...
user avatar
  • 9,537
1 vote
0 answers
328 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 ...
user avatar
  • 11
2 votes
1 answer
4k 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 ...
user avatar
  • 5,207
0 votes
1 answer
298 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/...
user avatar
  • 145
0 votes
2 answers
3k 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 ...
user avatar
4 votes
1 answer
14k 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 ...
user avatar
1 vote
0 answers
88 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 ...
user avatar
  • 1,039
1 vote
3 answers
340 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 ...
user avatar
  • 123
2 votes
1 answer
645 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/....
user avatar
2 votes
4 answers
111 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 ...
user avatar
0 votes
1 answer
726 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 ...
user avatar
  • 1,419
3 votes
2 answers
4k 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 ...
user avatar
  • 63
8 votes
2 answers
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 ...
user avatar
0 votes
1 answer
1k 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. ...
user avatar
  • 2,667
0 votes
0 answers
176 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 ...
user avatar
1 vote
1 answer
765 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 ...
user avatar
  • 145
0 votes
1 answer
391 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. ...
user avatar
1 vote
2 answers
136 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 ...
user avatar
  • 13.9k