Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .