Command line to search where's the apllication installed
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.
Command line to search where's the apllication installed
Good day to everyone..
I have a RH EL AS3 machine, i have get Apache(httpd), mySQL, Java, tomcat installed on the machine. How am i gonna to check where's the directory for those application installed by using command line on terminal.
How do i know which directory refer to which application?
You can try the whereis command if you know the name of a binary a program uses. For instance, for apache2, you could issue whereis apache2. My output for that command is:
Unfortunately, it won't give you the document root or anything, but it's a start.
Also, I'm not sure about Redhat, but on most systems, these paths are common:
Apache data: /var/www
Apache config: /etc/apache or /etc/apache2
MySQL data : /var/lib/mysql
My Java is installed at /opt/blackdown-jre-version.
Thanks for the kindly help Zoombie, the "whereis" command are really helpful.
I have been trying some testing on my machine, the funny thing is when i key
in "whereis apache2" in the terminal its cames out with a result "apache2:"
.. there is no furthur details on the directory.. but when i key in "whereis httpd"
it display the result which is similar with you.. namely;
Distribution: limping along with MD10, Knoppix3.6 : )
Posts: 62
Rep:
I can't ever use "find" because I'm always told to updatedb as root, and I've tried
typing as root "updatedb" because it sounds like a command but that isn't quite right.
"Locate" does the trick for me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.