Inspect an /etc/group record.
developers:x:1800:alice,bobWhat does the fourth field represent?
The group fields are name, password marker, GID, and a comma-separated supplementary-member list.
Detailed explanation
Incorrect. The group name is the first field.
Incorrect. The group name is the first field.
Incorrect. The GID is the third field.
Incorrect. The GID is the third field.
Correct. The fourth field lists supplementary members.
Correct. The fourth field lists supplementary members.
Incorrect. /etc/group has no group home-directory field.
Incorrect. /etc/group has no group home-directory field.
Try it yourself
An example you can run in a temporary verification environment.
entry='developers:x:1800:alice,bob'; printf '%s\n' "$entry" | cut -d: -f4Expected result
alice,bobKey points
- Third field is GID
- Fourth is member list
- Primary group comes from passwd
Notes
- Environment: POSIXシェル / 合成レコード
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.