During a departmental merger, the existing Linux group "marketing" (GID 1505) must be renamed to "revenue" and assigned GID 2020. Because the identifier 2020 is already in use by the group "sales", the administrator must allow the temporary GID duplication. Which single command will accomplish both changes in one step?
The groupmod utility changes an existing group's attributes.
-g 2020 sets the new numeric group ID.
-o (non-unique) must accompany -g when the new GID is already assigned to another group.
-n revenue renames the group. The correct syntax places all options before the current group name. Therefore, "groupmod -g 2020 -o -n revenue marketing" performs both required modifications in one command. The second choice omits -o, so it would fail because 2020 is already taken. The third and fourth choices misplace arguments after the GROUP parameter or supply the GID without the -g switch, producing a syntax error.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the -o option do in the groupmod command?
Open an interactive chat with Bash
Why is the order of options important in the groupmod command?
Open an interactive chat with Bash
What is the significance of GIDs in Linux?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access