Questions tagged [locate]
A command line application that shows file locations.
124
questions
0
votes
0
answers
105
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 ...
0
votes
0
answers
35
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?
0
votes
0
answers
41
views
WPS apps, KDE apps, locate, remove
i have Ubuntu 22.04.2 LTS
and there are some apps seen in the Show Applications window that I'd like to remove,
of WPS there are four apps: pdf, presentation, spreadsheets, writer
and of KDE there are ...
-3
votes
1
answer
125
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 ...
1
vote
0
answers
168
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 ...
1
vote
0
answers
21
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 ...
0
votes
1
answer
34
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 ...
-1
votes
1
answer
206
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?
...
0
votes
0
answers
40
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:
...
0
votes
1
answer
72
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 ...
0
votes
1
answer
125
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 ...
0
votes
0
answers
132
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 ...
0
votes
0
answers
56
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?
1
vote
1
answer
269
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.....
0
votes
1
answer
1k
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
...
-2
votes
1
answer
2k
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'
5
votes
1
answer
2k
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 ...
1
vote
1
answer
2k
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: ...
1
vote
2
answers
101
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 ...
-1
votes
1
answer
169
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 ...
1
vote
0
answers
214
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 ...
5
votes
3
answers
20k
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 ...
2
votes
2
answers
515
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 ...
3
votes
2
answers
653
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 ...
1
vote
1
answer
230
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
1
answer
1k
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
1
answer
405
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
1
answer
58
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
1
answer
709
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
0
answers
37
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 ...
4
votes
1
answer
547
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 ...
25
votes
1
answer
6k
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 ...
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 ...
0
votes
2
answers
48
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
2
answers
853
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
1
answer
66
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
1
answer
60
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
0
answers
775
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
1
answer
141
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....
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.
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/...
3
votes
1
answer
2k
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
0
answers
377
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 ...
2
votes
1
answer
5k
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
1
answer
429
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
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 ...
5
votes
1
answer
15k
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
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 ...
1
vote
3
answers
364
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 ...
2
votes
1
answer
723
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/....