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)- A12% (3)
- B80% (20)
- C4% (1)
- D4% (1)
Community Discussion
No community discussion yet for this question.