LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2004, 09:39 PM   #1
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Rep: Reputation: 30
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?
 
Old 08-04-2004, 09:43 PM   #2
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
if you want to find the firefox directory, then try this:
Code:
which firefox
it should tell you where the firefox file is, and that's probably what you want.
 
Old 08-04-2004, 09:47 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
locate firefox | grep plugin

If that returns with empty hands run
updatedb -c as root first.


Cheers,
Tink
 
Old 08-04-2004, 09:48 PM   #4
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
thanks
it gave me /usr/bin/firefox
but thats the program to execute it, i need to find the directory of it :S
 
Old 08-04-2004, 10:01 PM   #5
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
/usr/bin is where the executable is
the dir for it is probably /.mozilla
 
Old 08-04-2004, 10:22 PM   #6
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
this is what i put
Code:
Please enter the installation path of the Mozilla, Netscape,
or Opera browser (i.e., /usr/lib/mozilla): /home/mark/.mozilla/

WARNING: Please enter a valid installation path.
thats what it gives me :S
 
Old 08-04-2004, 10:32 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Tried my suggested method yet?
http://www.linuxquestions.org/questi...58#post1089058


Cheers,
Tink
 
Old 08-04-2004, 10:48 PM   #8
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
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?
 
Old 08-04-2004, 11:45 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 08-05-2004, 12:45 AM   #10
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
hi, i did that and this is what i got

mark@linux:~> find -type d -iname "*firefox*" | grep plugin
mark@linux:~>

nothing
odd hmm?
 
Old 08-05-2004, 03:41 AM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Not really ... I am tired :)
find / -type d -iname "*firefox*" | grep plugin

Try that one...


Cheers,
Tink
 
Old 08-05-2004, 08:16 AM   #12
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
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 #
 
Old 08-05-2004, 08:44 AM   #13
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
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>.
 
Old 08-05-2004, 08:50 AM   #14
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Just do updatedb without the "-c", works on my box.
 
Old 08-05-2004, 12:46 PM   #15
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by minm
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>.
locate != slocate


Code:
[tink@diggn:~]$ updatedb --help
Secure Locate 2.7 - Released January 24, 2003

Copyright (c) 1999, 2000, 2001 Kevin Lindsay & Netnation Communications Inc. &
James A. Woods <jwoods@adobe.com>

search usage:   updatedb [-qi] [-d <path>] [--database=<path>] <search string>...
                updatedb [-r <regexp>] [--regexp=<regexp>]
database usage: updatedb [-qv] [-o <file>] [--output=<file>]
                updatedb [-e <dir1,dir2,...>] [-f <fs_type1,...> ] [-l <level>]
                         [-c] <[-U <path>] [-u]>
general usage:  updatedb [-Vh] [--version] [--help]

   Options:
   -u                 - Create slocate database starting at path /.
   -U <dir>           - Create slocate database starting at path <dir>.
   -c                 - Parse original GNU Locate's '/etc/updatedb.conf'
                        when using the -u or -U options.  If 'updatedb' is
                        symbolically linked to the 'updatedb' binary, the
                        original configuration file will automatically be
                        used.
   -e <dir1,dir2,...> - Exclude directories from the slocate database when
                        using the -u or -U options.
   -f <fs_type1,...>  - Exclude file system types from the slocate database
                        when using the -u or -U options. (ie. NFS, etc).
   -l <level>         - Security level. 
                           0 turns security checks off. This will make
                             searchs faster.
                           1 turns security checks on. This is the default.
   -q                 - Quiet mode.  Error messages are suppressed.
   -n <num>           - Limit the amount of results shown to <num>.
   -i                 - Does a case insensitive search.
   -r <regexp>
   --regexp=<regexp>  - Search the database using a basic POSIX regular
                        expression.
   -o <file>
   --output=<file>    - Specifies the database to create.
   -d <path>
   --database=<path>  - Specfies the path of databases to search in.
   -h
   --help             - Display this help.
   -v
   --verbose          - Verbose mode. Display files when creating database.
   -V
   --version          - Display version.

Author: Kevin Lindsay
Bugs:   klindsay@mkintraweb.com
FTP:    ftp://ftp.geekreview.org/slocate/
        ftp://ftp.mkintraweb.com/pub/linux/slocate/
HTTP:   http://www.geekreview.org/slocate/


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

Last edited by Tinkster; 09-08-2005 at 02:21 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
updating locate db linuxmandrake Linux - General 1 10-26-2005 06:09 PM
Program installed, now can't locate or start it rollo Linux - Newbie 24 12-29-2004 09:22 PM
locate juanb Linux - Newbie 2 12-18-2003 05:36 AM
Can't locate locate hindenbergbaby Linux - Newbie 3 10-22-2003 04:13 PM
how to locate ? jamaso Linux - General 4 10-17-2002 03:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration