Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I wrote a script for my Red Hat server that aggregates some system info and shoots it off in an email. What is the appropriate location to place that script?

Right now it is in my /home/jeff directory but I doubt that is a very good practice. I tried moving it to /usr/bin/ but my permissions were denied and that scared me off from forcing it to be there.

share|improve this question
up vote 3 down vote accepted

It it's personal script, I think it's better to keep it in ~/bin/. If it's system-wide (will be used by other users and/or services), I'd agree with @Zoredache: /usr/local/bin/ will be a good place.

share|improve this answer

If it is a really minor script you could drop it /etc, there are already many scripts there that configure core functionality of your system. The location suggested by the FHS would be /usr/local/{bin|sbin}.

share|improve this answer

Custom items should be segregated in an intelligent way so that drastic work on the system wil not inadvertently affect them. I favor using "opt" directories (i.e. /opt , /etc/opt, var/opt/log , etc.) and placing components appropriately within them, generally in further subdirectories associated with the organization or application (i.e. /etc/opt/gnome for example) .

share|improve this answer
The way I read the FHS suggest that /opt should be used for 3rd party software not your internal tools. Not saying that it would really harm anything if you have good documentation though. – Zoredache Mar 14 '12 at 19:52

Your Answer


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.