LinuxQuestions.org
Visit Jeremy's Blog.
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 09-23-2003, 09:12 PM   #1
NW Otter
LQ Newbie
 
Registered: Sep 2003
Distribution: Mandrake
Posts: 27

Rep: Reputation: 15
Where is Stuff???


Okay, I am newbie frustrated.

I can never find anything in the directory structures. I know I have Apache, MySQL, PHP installed and I am trying to configure the PHP MySQL Libraries but I can't figure out where this stuff is intstalled! All the books I read say it is either here or there, but it is never where they say it should be. What is the best way to find stuff when you have no idea what directory/folder it is in?
 
Old 09-23-2003, 09:41 PM   #2
GodMinusOne
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware
Posts: 24

Rep: Reputation: 15
Re: Where is Stuff???

Quote:
Originally posted by NW Otter
Okay, I am newbie frustrated.

I can never find anything in the directory structures. I know I have Apache, MySQL, PHP installed and I am trying to configure the PHP MySQL Libraries but I can't figure out where this stuff is intstalled! All the books I read say it is either here or there, but it is never where they say it should be. What is the best way to find stuff when you have no idea what directory/folder it is in?
Use the programs "find" or "locate". "man find" or "man locate" for help.
 
Old 09-23-2003, 10:47 PM   #3
NW Otter
LQ Newbie
 
Registered: Sep 2003
Distribution: Mandrake
Posts: 27

Original Poster
Rep: Reputation: 15
Okay... I type

cd /
find php

nothing. I am pretty sure I have php as I can run phpinfo() in a script and get output.

Are there wildcards or something? I can't seem to see any in the man page...

- feeling stupid here
 
Old 09-23-2003, 10:50 PM   #4
thesonic1
Member
 
Registered: Aug 2003
Posts: 33

Rep: Reputation: 15
can you not run a find from x - like Kfind in KDE ?
 
Old 09-23-2003, 10:52 PM   #5
NW Otter
LQ Newbie
 
Registered: Sep 2003
Distribution: Mandrake
Posts: 27

Original Poster
Rep: Reputation: 15
Huh? Run a find from x? I am stitting at the command line right now.
 
Old 09-23-2003, 10:54 PM   #6
NW Otter
LQ Newbie
 
Registered: Sep 2003
Distribution: Mandrake
Posts: 27

Original Poster
Rep: Reputation: 15
I stopped running a GUI as it was more frustrating due to the fact that the books I am reading all refer to command lines...
 
Old 09-23-2003, 11:02 PM   #7
NW Otter
LQ Newbie
 
Registered: Sep 2003
Distribution: Mandrake
Posts: 27

Original Poster
Rep: Reputation: 15
Okay, so I ran KDE and found KFind and have discovered that I have 2 files named php. Now I am going to search for configure. But I still want to know why find did not work from the command prompt.
 
Old 09-24-2003, 06:50 AM   #8
MadNewbie
Member
 
Registered: Jun 2003
Posts: 31

Rep: Reputation: 15
I am by no means any expert here, but what you should use is locate php from command line to find any file with php in it. This would probably give a lot of output though as you would get temp internet files with php extensions.

The find program is more usefull when you want to search all your files in the given path for an expression. Such as have find print out all your files that were modified in last days, or find files of a special user or whatever. There are a lot of things you can search for. (check manpages) Anyway I believe you can give it an option like -name or something to search for matches of a certain name, but as I said locate is more usefull for this purpose.

Oh and by the way, another command that can be usefull is whereis (to find binaries and man pages entries for a program)

Hope this helps.

MadNewbie
 
  


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
When installing new stuff in suse 9.1, do you uninstall old stuff first? randon SUSE / openSUSE 1 12-25-2004 05:37 PM
Where did all my stuff go?? spaztik Linux - Newbie 7 02-06-2004 10:18 AM
RC.D Stuff gr33ndata Linux - Newbie 2 11-01-2003 08:08 PM
stuff you need for it to be....right Underworld Linux - General 1 10-18-2003 09:23 PM
Stuff beatman Linux - Software 6 08-03-2003 02:07 PM


All times are GMT -5. The time now is 10:34 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration