Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

3 Answers 3

up vote 9 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
1  
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

 
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.