Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

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.