Create a home directory for regular user alice using a conventional FHS layout.
Which path is expected?
Regular users normally have home directories under /home/USER. root's home is conventionally /root.
Detailed explanation
/root/aliceIncorrect. /root is the root user's home, not the normal parent for alice.
Incorrect. /root is the root user's home, not the normal parent for alice.
/home/aliceCorrect. /home/alice is the conventional regular-user home.
Correct. /home/alice is the conventional regular-user home.
/usr/aliceIncorrect. /usr is for installed software and shareable data.
Incorrect. /usr is for installed software and shareable data.
/var/log/aliceIncorrect. /var/log is for logs.
Incorrect. /var/log is for logs.
Try it yourself
An example you can run in a temporary verification environment.
test -d /home && printf '/home exists\n'Expected result
/home exists(環境によって個別利用者ディレクトリは異なる)Key points
- /home stores user homes
- /root is root's home
- Site policies can vary
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.