nerdexam
LPI

101-400 · Question #48

Which of the following commands changes the ownership of file.txt to the user dan and the group staff?

The correct answer is B. chown dan:staff file.txt. See the full explanation below for the reasoning.

Question

Which of the following commands changes the ownership of file.txt to the user dan and the group staff?

Options

  • Achown dan/staff file.txt
  • Bchown dan:staff file.txt
  • Cchown -u dan -g staff file.txt
  • Dchown dan -g staff file.txt

How the community answered

(25 responses)
  • A
    12% (3)
  • B
    80% (20)
  • C
    4% (1)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 101-400 Practice