Store site-specific data for the www service provided by this system.
It is service data, not an executable binary or host configuration.
Which FHS location is most appropriate?
/srv is intended for site-specific data served by services provided by the system.
Detailed explanation
/srv/wwwCorrect. /srv/www is an appropriate service-data hierarchy.
Correct. /srv/www is an appropriate service-data hierarchy.
/bin/wwwIncorrect. /bin is for essential command binaries.
Incorrect. /bin is for essential command binaries.
/etc/wwwIncorrect. /etc is for configuration files.
Incorrect. /etc is for configuration files.
/proc/wwwIncorrect. /proc is a virtual kernel filesystem.
Incorrect. /proc is a virtual kernel filesystem.
Try it yourself
An example you can run in a temporary verification environment.
find /srv -maxdepth 2 -printExpected result
サービスデータがあれば配下を表示する。空の場合もあるKey points
- Service data
- Site-specific
- /srv/service
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.