16

I wrote a simple script which I want to share with my colleagues.

Should it be in /usr/local/bin or /usr/local/sbin? What is the typical usage for these directories?

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972
Jérôme Kerviel
  • 161
  • 1
  • 1
  • 3

2 Answers2

20

/usr/local/bin is for programs that a normal user may run.

/usr/local/sbin is for system administration programs (which are not part of the core OS) that a local administrator may run. By default, a normal user does not have /usr/local/sbin on their path.

dogbane
  • 964
  • 5
  • 8
12

The Filesystem Hierarchy Standard answers this: https://www.pathname.com/fhs/.

John Gardeniers
  • 27,458
  • 12
  • 55
  • 109