Questions tagged [locate]

A command line application that shows file locations.

Filter by
Sorted by
Tagged with
0 votes
1 answer
51 views

Locate Command S option does not work

I have installed the command (sudo apt install locate, sudo spt install mlocate) but the option s is not there. Cna somebody help me?
Alessandro Garzelli's user avatar
0 votes
1 answer
205 views

Can't find/delete installed application

I am going mad as I can't find a WhatsApp package that I want to uninstall. It apparently is not installed with snap, can't be located using grep, dpkg, which, and the path identified in the process ...
gerscorpion's user avatar
0 votes
0 answers
615 views

I cannot find the file /var/lib/mlocate.db

I have Ubuntu 22.04.2 LTS installed on my Raspberry Pi and I try to find/open the file /var/lib/mlocate.db but I cannot find it. I installed locate package. It's because I'm doing an online course ...
Chookitypok's user avatar
0 votes
0 answers
103 views

Unable to locate network scripts package

I’m trying to install network-scripts package on ubuntu and keep receiving the error “unable to locate package”. Is there a different name for network scripts?
Tran Nguyen's user avatar
-3 votes
1 answer
434 views

Exclude a directory when using 'plocate'? [closed]

So after using the locate command on Linux Mint a lot, I ran into the issue of every query returning rows upon rows of results in the /timeshift/ directory - what Linux Mint uses as OS save points. If ...
Voxel's user avatar
  • 73
1 vote
0 answers
345 views

Ubuntu to Kubuntu How Long Should I Let plocate initialize?

I am switching from GNOME to KDE following this article and it has made it to this part of the process without issue: Initializing plocate database; this may take some time... That has been running ...
Kestrell's user avatar
1 vote
0 answers
47 views

How do I correct permissions for the command locate?

I used to use the command 'locate' for some 15 years now, with daily 'sudo updatedb'. Strange enough, since the most recent upgrade of Ubuntu, it doesn't give me results, but asks for the root ...
udippel's user avatar
  • 187
0 votes
1 answer
41 views

Unable to find Ubuntu directory in order to delete it

Hello all and sorry for the newbie question, but I'm going through this tutorial: How do I remove "Ubuntu" in the bios boot menu? (UEFI) and am unable to find the Ubuntu subdirectory to ...
Jon's user avatar
  • 3
-1 votes
1 answer
605 views

How to check if a package is installed while installing with make

Lets say I want to install a package like kenlm. I have used this link to install it and it got installed without raising any error. Now how can I check where in my machine it has been installed? ...
sariii's user avatar
  • 101
0 votes
0 answers
89 views

Ubuntu Packages not found even after updating sudo apt etc

I'm rather new to Ubuntu but have been trying to install a number of packages through the bash from Windows. The problem for many of them is that it they are not found. I'm getting the error message: ...
jmachts's user avatar
0 votes
1 answer
184 views

How do I get rid of these files?

I installed a program, decided I don't want to use it anymore so I got rid of it with: sudo apt purge "target_program" The program got uninstalled but left behind some leftover files and ...
Uncle Woods's user avatar
0 votes
1 answer
178 views

"locate" command find file but "cat" says it doesn't exist

I'm using ubuntu 20.04, with a nvidia geforce 610M, the last driver installed is 390 for nvidia. I'm completely lost, recently had issues with my nvidia driver. Now they seem corrected but after my ...
Bastian Muratory's user avatar
0 votes
0 answers
161 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 ...
desmond13's user avatar
  • 704
0 votes
0 answers
58 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?
Fox Chasin's user avatar
1 vote
1 answer
404 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.....
Justas Bogočionkas's user avatar
1 vote
1 answer
2k views

mlocate has no installation candidate [duplicate]

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 ...
Adam Nitzan's user avatar
-2 votes
1 answer
4k 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'
Sourabh Jadhav's user avatar
6 votes
1 answer
3k 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 ...
Codess's user avatar
  • 61
1 vote
1 answer
3k 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: ...
Sajal Gupta's user avatar
1 vote
2 answers
104 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 ...
WurmD's user avatar
  • 111
-1 votes
1 answer
249 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 ...
Anna Mohan's user avatar
1 vote
0 answers
271 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 ...
JayBee's user avatar
  • 11
5 votes
3 answers
27k 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 ...
Max's user avatar
  • 392
3 votes
2 answers
757 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 ...
Guy D'Amico's user avatar
3 votes
2 answers
756 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 ...
Number945's user avatar
  • 167
1 vote
1 answer
241 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.
Peter Krauss's user avatar
1 vote
1 answer
2k 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. ...
Tomas.R's user avatar
  • 423
0 votes
1 answer
543 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/...
akratz's user avatar
  • 101
3 votes
1 answer
67 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 ...
user37342's user avatar
  • 141
1 vote
1 answer
1k 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 ...
Netsu's user avatar
  • 11
0 votes
0 answers
43 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 ...
hans's user avatar
  • 187
4 votes
1 answer
707 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 ...
sancho.s ReinstateMonicaCellio's user avatar
25 votes
1 answer
7k 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 ...
DK Bose's user avatar
  • 42.4k
4 votes
3 answers
3k 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 ...
bgoodr's user avatar
  • 1,562
0 votes
2 answers
50 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/...
Surendrareddy Tetala's user avatar
0 votes
2 answers
1k 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....
Prasanth Ganesan's user avatar
0 votes
1 answer
71 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 ...
Norbert's user avatar
0 votes
1 answer
64 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 ...
user23's user avatar
  • 323
3 votes
0 answers
798 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 ...
mahen's user avatar
  • 276
0 votes
1 answer
158 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....
2801001's 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/...
WinEunuuchs2Unix's user avatar
3 votes
1 answer
3k 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 ...
Bruni's user avatar
  • 10.5k
1 vote
0 answers
425 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 ...
unknown's user avatar
  • 11
2 votes
1 answer
6k 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 ...
luv.preet's user avatar
  • 5,777
0 votes
1 answer
501 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/...
n00b's user avatar
  • 155
0 votes
2 answers
4k 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 ...
Khushal Chauhan's user avatar
5 votes
1 answer
16k 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 ...
Gavin Morton's user avatar
1 vote
0 answers
89 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 ...
Smile's user avatar
  • 1,099
1 vote
3 answers
389 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 ...
Max's user avatar
  • 123