Aug 9, 2011
tom

Can I place my script in /usr/bin?

Question

I wrote a small bash script for starting, stopping and restarting my java applications and I want to make it available to all users so they could run it.
Should I just place it in /usr/bin to do that? Is it the right place for my scripts? Isn’t that for like installed package script and stuff only?

Answer

Correct, [/usr]/[s]bin is for the distro creator’s use. Local user scripts belong under /usr/local, specifically /usr/local/bin in this case.

Filesystem Hierarchy Standard

Related posts:

  1. Access to /usr/bin from web application – CentOS 5 64-bit dedicated hosting
  2. How to grant sudo rights only to specific script files?
  3. I just deleted “/bin”. What’s the best way to recover?
  4. Backup sync script not working
  5. Add Group Policy by Script

Leave a comment