LinuxQuestions.org
Help answer threads with 0 replies.
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 03-21-2014, 07:19 AM   #1
justinwyllie
LQ Newbie
 
Registered: Feb 2014
Posts: 10

Rep: Reputation: Disabled
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.

Last edited by justinwyllie; 03-21-2014 at 07:22 AM.
 
Old 03-21-2014, 07:23 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,525

Rep: Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436
probably which ?
 
1 members found this post helpful.
Old 03-21-2014, 07:25 AM   #3
justinwyllie
LQ Newbie
 
Registered: Feb 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
probably which ?
Thanks. I see. This works for everything. Not just httpd. Thanks
 
Old 03-21-2014, 07:27 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,525

Rep: Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436
you can also try type
If you really want to say thanks just press YES
 
Old 03-21-2014, 07:30 AM   #5
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,305

Rep: Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816
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.
 
  


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
ln to exicutable not running when running by absolute path works dasy2k1 Linux - Newbie 3 05-26-2012 04:50 PM
[SOLVED] httpd version still in 2.2.15? angelo.c Red Hat 4 04-18-2012 04:24 AM
[SOLVED] Command path is in PATH but bash does not find the command. stf92 Linux - Newbie 17 03-23-2012 05:19 AM
[SOLVED] How to get the absolute path of the running executable file and current work path ? 915086731 Programming 3 11-01-2011 10:28 AM
What command to show Centos version running zapo Linux - Newbie 8 03-24-2010 09:45 PM


All times are GMT -5. The time now is 05:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration