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.


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

  • 2
    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.


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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