GCFA · Question #203
Which of the following directories contains administrative commands on a UNIX computer?
The correct answer is B. /sbin. On Unix and Linux systems, /sbin is the designated directory for system administration binaries that are typically restricted to the root user.
Question
Which of the following directories contains administrative commands on a UNIX computer?
Options
- A/usr/local
- B/sbin
- C/bin
- D/export
How the community answered
(33 responses)- A6% (2)
- B79% (26)
- C12% (4)
- D3% (1)
Why each option
On Unix and Linux systems, /sbin is the designated directory for system administration binaries that are typically restricted to the root user.
/usr/local is intended for software compiled and installed locally by the system administrator, not for core system administrative commands defined by the OS.
The /sbin directory (system binaries) is defined by the Filesystem Hierarchy Standard to hold essential administrative executables such as ifconfig, fdisk, fsck, and init, which are used for system maintenance and are usually restricted to the root user. This is distinct from /bin, which holds commands available to all users.
/bin contains basic user-facing commands like ls, cp, and mv that are available to all users, not privileged administrative tools.
/export is not a standard Unix directory defined by the FHS - it is sometimes used by Solaris systems as an NFS export root but does not contain administrative commands.
Concept tested: Unix Filesystem Hierarchy Standard /sbin directory purpose
Source: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s16.html
Topics
Community Discussion
No community discussion yet for this question.