On Sun, 30 Mar 2003, Daniel Fone wrote:

> As you can see, I have put the quote file in /etc and I have put the binary in
> /bin. Is there any reason why I shouldn't do this? I have hardcoded the path
> to the quote file as /etc/quotes as I can't think of any better way to do it.
> Also, how do I go about distributing my program? I think an RPM is *way* over
> the top and there is only one source file so a configure script is also not
> very necessary.

A few people have suggested using /usr/bin for the binary. I'd put it in
/usr/local/bin

Here's why:

/bin holds essential system startup programs (like mount, bash and others)

/usr/bin holds other programs installed by your distribution (redhat,
mandrake, etc)

/usr/local/bin holds all site-specific files...things you have installed
that did not come with your linux distro...things you compiled from
source, etc. If you make /usr/local a separate partition then you can
upgrade/change your distro and not loose any files you installed (like
making /home a separate partition saves your files sometimes).

I'm feeling less coherent today than usual, but hopefully what I typed
makes sense.

Tim Wright

Assistant Lecturer
Department of Computer Science
University of Canterbury

http://www.cosc.canterbury.ac.nz/~tnw13

Reply via email to