Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.