You work as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based
network. Rick, a Sales Manager, has a permission issue on a file. You want to know the names of
groups of which Rick is a member. You want to store the information in a text file named
RickGroup.txt. Which of the following commands will you use to accomplish the task?
A.
ls rick /etc/group > RickGroup.txt
B.
ls /etc/group rick > RickGroup.txt
C.
grep /etc/group rick > RickGroup.txt
D.
grep rick /etc/group > RickGroup.txt
Explanation:
The /etc/group file contains group information. This file shows which users are members of which
groups.