Place static host-specific configuration for a system-wide service.
The files are not executable programs or variable logs.
Which FHS top-level directory is most appropriate?
/etc contains host-specific system configuration. It is not the normal location for executable binaries.
Detailed explanation
/etcCorrect. /etc is the standard top-level directory for host-specific configuration.
Correct. /etc is the standard top-level directory for host-specific configuration.
/varIncorrect. /var contains variable runtime data such as logs.
Incorrect. /var contains variable runtime data such as logs.
/binIncorrect. /bin contains essential command binaries.
Incorrect. /bin contains essential command binaries.
/tmpIncorrect. /tmp is for temporary files.
Incorrect. /tmp is for temporary files.
Try it yourself
An example you can run in a temporary verification environment.
find /etc -maxdepth 1 -type f -printExpected result
/etc直下の設定ファイル例Key points
- Host-specific
- Configuration
- Static data
Notes
- Environment: FHS 3.0/Linux
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.