CompTIA
XK0-006 · Question #131
XK0-006 Question #131: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-006 to reveal the answer and full explanation for question #131. The question stem and answer options stay visible for context.
Question
A Linux administrator needs to create accounts for a list of new users. The user account names have been defined in the user LIST variable by executing the following: USER_LIST="alice bob charles" Which of the following commands should the administrator use to successfully create the user accounts?
Options
- Aecho "$USER LIST" | while username; do useradd -m "$username"; done
- Becho "$USER_LIST" | until username; do useradd -m "$username"; done
- Cselect username in "$USER_LIST"; do useradd -m $username"; done
- Dfor username in $USER_LIST; do useradd -m "$username"; done
Unlock XK0-006 to see the answer
You've previewed enough free XK0-006 questions. Unlock XK0-006 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.