LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Command to tell me that path to the version of httpd which is currently running (https://www.linuxquestions.org/questions/linux-newbie-8/command-to-tell-me-that-path-to-the-version-of-httpd-which-is-currently-running-4175498962/)

justinwyllie 03-21-2014 06:19 AM

Command to tell me that path to the version of httpd which is currently running
 
Hi

I know there is a command which does just this - will give me the path to the httpd binary which is currently running. I've used it. I've just forgotten it. And my Google skills seem for once to be failing me.

Please tell me what it is!

ANSWERED:

which httpd.

pan64 03-21-2014 06:23 AM

probably which ?

justinwyllie 03-21-2014 06:25 AM

Quote:

Originally Posted by pan64 (Post 5138624)
probably which ?

Thanks. I see. This works for everything. Not just httpd. Thanks

pan64 03-21-2014 06:27 AM

you can also try type
If you really want to say thanks just press YES

TenTenths 03-21-2014 06:30 AM

Just because there is an httpd is in /usr/sbin doesn't necessarily mean that's the one that will be executed.

If your version of Linux uses "service" style scripts (for example in Centos /etc/init.d/httpd) then the actual path to the executable may be redefined in those scripts.


All times are GMT -5. The time now is 10:35 AM.