What does /etc directory contain in Linux operating system?
2021
What does /etc directory contain in Linux operating system?
- A.
Home directories of the common user
- B.
System configuration file
- C.
Miscellaneous data
- D.
Common program shared by the system and the system administrator
Attempted by 81 students.
Show answer & explanation
Correct answer: B
In the Linux Filesystem Hierarchy Standard (FHS), the /etc directory is one of the most critical locations on the system. It is reserved for host-specific system-wide configuration files. These files control the behavior of the operating system and various installed applications—for example, network settings, user account information (/etc/passwd), and startup scripts. A key rule for /etc is that it should only contain configuration data and not binary executables.