How to locate where a program is?
Hey, i'm trying to install flash for firefox but i need to find the directory, how do i do that?
|
if you want to find the firefox directory, then try this:
Code:
which firefox |
locate firefox | grep plugin
If that returns with empty hands run updatedb -c as root first. Cheers, Tink |
thanks
it gave me /usr/bin/firefox but thats the program to execute it, i need to find the directory of it :S |
/usr/bin is where the executable is
the dir for it is probably /.mozilla |
this is what i put
Code:
Please enter the installation path of the Mozilla, Netscape, |
|
opps i didn't even see your post, sorry hehe
this is what i type, and the output mark@linux:~> locate firefox | grep plugin bash: locate: command not found linux:/home/mark # updatedb -c bash: updatedb: command not found i was in root for the updatedb -c so what's up? |
You didn't install a few -in my opinion- quite basic tools.
In Slack the package is called slocate, have a look in yast, and install them ... Alternatively, try a find -type d -iname "*firefox*" | grep plugin I hope you have that one installed ;) Cheers, Tink |
hi, i did that and this is what i got
mark@linux:~> find -type d -iname "*firefox*" | grep plugin mark@linux:~> nothing odd hmm? |
Not really ... I am tired :)
find / -type d -iname "*firefox*" | grep plugin Try that one... Cheers, Tink |
alright, i do that, and i get a lot of files being listed with permission denied, so i login as root and type it again and i get this
linux:/home/mark # find / -type d -iname "*firefox*" | grep plugin find: /proc/12195/task: No such file or directory find: . changed during execution of find linux:/home/mark # |
ok, i installed the locate tools (updatedb) etc
but when i go updatedb -c it gives me linux:/home/mark # updatedb -c updatedb: invalid option -c Usage: updatedb [--localpaths='dir1 dir2...'] [--netpaths='dir1 dir2...'] [--prunepaths='dir1 dir2...'] [--prunefs='fs1 fs2...'] [--output=dbfile] [--netuser=user] [--localuser=user] [--old-format] [--version] [--help] Report bugs to <bug-findutils@gnu.org>. |
Just do updatedb without the "-c", works on my box.
|
Quote:
Code:
[tink@diggn:~]$ updatedb --help Has several advantages ... a central config file with prune-paths and file-systems being only one of them ;) The "normal" locate, run without parameters, will put everything under the current path in locates database, so make sure you change to / before you run it. Cheers, Tink |
All times are GMT -5. The time now is 05:22 PM. |