home | list info | list archive | date index | thread index

[OCLUG-Tech] is there a FHS/LSB rationale for installing in /usr/bin vs /usr/sbin?

  • Subject: [OCLUG-Tech] is there a FHS/LSB rationale for installing in /usr/bin vs /usr/sbin?
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Wed, 14 Mar 2018 05:22:14 -0400 (EDT)
  more nitpicky pedantry, but i was summarizing some handy system H/W
utilities and noticed that, while lsusb and lspci philosophically do
the same thing (that is, display system info), on my fedora system,
they are installed differently:

  $ type lsusb
  lsusb is /usr/bin/lsusb
  $ type lspci
  lspci is /usr/sbin/lspci
  $

obviously, it's not a big deal since both /usr/bin and /usr/sbin are
part of the normal search path for even regular users, but i was
reminded of the excruciating detail of the filesystem hierarchy
standard and was wondering if there was anything in the recent FHS
3.0:

  http://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html

that had anything to say about a distinction between those two
directories. there's nothing noticeably different between those two
commands in terms of basic properties:

  $ ls -l /usr/bin/lsusb
  -rwxr-xr-x. 1 root root 208720 Dec  3 22:09 /usr/bin/lsusb
  $ ls -l /usr/sbin/lspci
  -rwxr-xr-x. 1 root root 83704 Aug  4  2017 /usr/sbin/lspci
  $

that suggests one is more of a "system" utility than the other. so is
this just arbitrary, or is there anything in the FHS that addresses
this sort of thing?

rday