Which of the following commands changes the ownership of file.txt to the user dan and the group staff?
A.
chown dan/staff file.txt
B.
chown dan:staff file.txt
C.
chown -u dan -g staff file.txt
D.
chown dan -g staff file.txt
题解
「chown」指令可以改变文件的拥有者和群组。选项 B 是正确用法,将「file.txt」的文件拥有者改成「dan」,群组改成「staff」。
