Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm now planning a solution that has to call a script that's running on a Linux \UNIX host. I'd prefer to place that script in a folder that exists in all kinds of Linux and UNIX. This helps me to guide the users just to copy the script into the same folder.

I'm looking for that folder...

More info:

  • The script should be accessible (+rx) to all users on that machine
  • The script is static and does not generate output files It should
  • It should work for Linux and UNIX (all kinds), especially Red-Hat, Solaris and AIX

Where should I place the script? /opt? /var?

Thank you

share|improve this question

2 Answers 2

The script goes in /usr/local/bin.

share|improve this answer

If you want the script to run like a command. Place the script in any location defined in the PATH variable. To view the data in your PATH variable.

echo $PATH
share|improve this answer

Your Answer

 
discard

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.