John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. John is working as a root user on the Linux operating system. He wants to change the group membership of the file foo to group bar. Which of the following commands will he use to accomplish the task?
A. chgrp bar foo
B. chgroup foo bar
C. chgrp foo bar
D. chgroup bar foo
Answer:A
John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. John is working as a root user on the Linux operating system. He wants to change the group membership of the file foo to group bar. Which of the following commands will he use to accomplish the task?
A. chgrp bar foo B. chgroup foo bar C. chgrp foo bar D. chgroup bar foo