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...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .