CompTIA Server+ (SK0-005) — Question 26

Which of the following will correctly map a script to a home directory for a user based on username?

Answer options

Correct answer: B

Explanation

The correct answer is B, as it dynamically references the username with the %username% variable, allowing for accurate mapping to each user's home directory. Option A uses a static path that does not adjust to individual usernames, while option C assumes a specific naming convention that may not apply universally. Option D incorrectly uses the dollar sign syntax, which is not standard for username variables.