Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

What is the conventional directory to keep shared scripts that might be used by more than one user?

I've read through this overview of the standard file system hierarchy, but it doesn't seem to recommend a location for storing shared scripts. Creating a /opt/scripts directory seems like a reasonable option, but I'd like to know if there is a standard UNIX convention for this.

share|improve this question
up vote 10 down vote accepted

I believe it's /usr/local/bin/ - it's for installing custom, not maintained by package manager executables.

share|improve this answer
I'm pretty sure this is platform dependent. On OpenBSD, for example, all 3rd party software from packages are installed in /usr/local/bin. So, while it's probably the proper place for your own shared executable scripts as well, it's not always for "not maintained by package manager executables" – gabe. Mar 23 '11 at 20:26

Depending on the purpose... but maybe /usr/bin is good place for most user programs. OPT is intended to have third party software.

share|improve this answer

Make a directory bin in /usr/local/share.

share|improve this answer

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.