nerdexam
CompTIA

XK0-001 · Question #268

Which of the following commands will create 'bsmith' as a user in the group 'web_users'?

The correct answer is B. useradd -g web_users bsmith. See the full explanation below for the reasoning.

Question

Which of the following commands will create 'bsmith' as a user in the group 'web_users'?

Options

  • Auseradd bsmith web_users
  • Buseradd -g web_users bsmith
  • Cuseradd web_users "bsmith" -add
  • Dgroupadd -group web_users bsmith

How the community answered

(58 responses)
  • A
    7% (4)
  • B
    76% (44)
  • C
    14% (8)
  • D
    3% (2)

Community Discussion

No community discussion yet for this question.

Full XK0-001 Practice