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

Can someone tell me of a sensible fairly standard place to put scripts that a number of users will need on an Ubuntu system?

share|improve this question
up vote 8 down vote accepted

Well, your tags include the Filesystem Hierarchy Standard so that should give you some guidance. I would recommend /usr/local/bin.

share|improve this answer
I had a look there and couldn't find anything useful. Through quick manual inspection of /usr/bin I couldn't find any examples that weren't binary or symlinks, which made me think that maybe it wasn't normal to put scripts themselves in bin directories. But if you recommend it that's enough for me! – Andy Sep 14 '10 at 16:27
@Andy: There's a lot of stuff in /usr/bin. All that matters is that they should be (usefully) executable; it doesn't matter whether they're implemented as scripts or binaries. If you're curious, you can run file /usr/bin/* to see what kinds of files you have in /usr/bin on your machine. – Gilles Sep 14 '10 at 18:26
@Gilles Thanks, that makes sense. And I'd never heard of file so thanks again for that! – Andy Sep 15 '10 at 8:35

I never put scripts that I write in /usr/bin. Either /usr/local/bin or, preferrably, /opt/local/bin. Virtually nothing's going to collide with or stomp on scripts in the latter.

share|improve this answer

You must log in to answer this question.

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