Place host-specific service configuration according to the FHS.
Which base directory is appropriate?
FHS defines /etc for host-specific system configuration; it is not the normal location for executable binaries.
Detailed explanation
/var/logIncorrect. /var/log stores changing log data.
Incorrect. /var/log stores changing log data.
/usr/binIncorrect. /usr/bin stores user commands.
Incorrect. /usr/bin stores user commands.
/homeIncorrect. /home stores user data.
Incorrect. /home stores user data.
/etcCorrect. /etc is the standard host-configuration hierarchy.
Correct. /etc is the standard host-configuration hierarchy.
Try it yourself
An example you can run in a temporary verification environment.
test -d /etc && printf '/etc exists\n'Expected result
/etc existsKey points
- /etc is host-specific config
- Static configuration
- Not a binary directory
Notes
- Environment: FHS準拠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.