Where’s that binary?

Compiled executable files, called binary files, or just binaries, can be located in a number of places in an FHS-compliant filesystem. However, it’s easy to become a little confused over why a particular executable file is placed where it is in the FHS. This is particularly true for bin and sbin directories, which appear in multiple locations. Table 7-7 lists these directories and shows how each is used.

Table 7-7. Binary file locations

Type of file

User commands

System administration commands

Vendor-supplied, essential (root filesystem)

/bin

/sbin

Vendor-supplied, nonessential (/usr filesystem)

/usr/bin

/usr/sbin

Locally supplied, nonessential (/usr filesystem)

/usr/local/bin

/usr/local/sbin

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.