8

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.

3 Answers 3

11

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

1
  • 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" Commented Mar 23, 2011 at 20:26
0

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

0

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

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.