Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Will Linux / UNIX / OS X binaries be stored in the same directories across different platform or distributions? I'm asking because I need to have access to uuidgen (stored in /usr/bin/uuidgen on my development computer) and noticed that my local Apache server does not include /usr/bin in the PATH. I know I could add /usr/bin to the path, but I want to make sure the software can be re-deployed on a number of different systems with ease. Thanks!

share|improve this question
up vote 2 down vote accepted

I wouldn't rely on it being there. You should use the which command to find it's path i.e. which uuidgen will find it in the user's path. If it's not there, you could use locate uuidgen to try and get it.

share|improve this answer
Will which always be located in /usr/bin? – Kevin Sylvestre Dec 24 '10 at 0:49
which is a shell builtin. – Sam Halicke Dec 24 '10 at 1:01
You beat me to it. +1 to you! (and Congrats on the new gig!) – gWaldo Dec 24 '10 at 1:06
What exactly does a shell built-in imply? The program running under Apache can't find which either. – Kevin Sylvestre Dec 24 '10 at 1:31
@Sam which is actually NOT a builtin command - in bash anyway. Which has been at /usr/bin/which on every system i've used. Also the fact apache can't find it makes me think it is running as a user that doesn't have a shell. What user is apache running as? – Zypher Dec 24 '10 at 3:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.