Provide the command to display the entries in the etcgroup


Need some help with UNIX/linux commands and line anchors and using ^ and $ in the same regex.

The /etc/group file defines the groups to which users belong. It's format is as follows:

Group : password : Group ID : Group List

Group List is a comma-separated list of usernames for users who are members of the group

Password is an encrypted field and will usually show "x"

Group is the name of the group, shown in the group field of ls -l

1. Provide the command to display the entries in the /etc/group file that contain the root (either as group or member of a group.

2. Provide the command to display the entry for the root group in the /etc/group file.

3. Provide the command to display the number of entries of the /etc/group file that have no users assigned to the group list.

4. Provide the command to display the entries of the /etc/group file that have root as member of a group, bot not as a group name.

Request for Solution File

Ask an Expert for Answer!!
Operating System: Provide the command to display the entries in the etcgroup
Reference No:- TGS02873558

Expected delivery within 24 Hours