On a Debian-based server, you are tasked with decommissioning the local account named charlie. The security policy states that the account and its home directory (including the mail spool) must be deleted immediately, no backup should be kept, and any files charlie owns that are located outside /home/charlie - such as /srv/projects/ - must remain untouched. Which single deluser command meets all of these requirements?
The invocation deluser --remove-home charlie removes the user account and deletes only the user's home directory and mail spool, leaving every other file the user owns elsewhere on the filesystem intact, and it performs no backup. Running deluser charlie without options leaves the home directory behind, so policy is not met. Using --remove-all-files eradicates every file owned by charlie, including those in /srv/projects/, which violates the requirement to preserve project data. The command with --backup-to implicitly enables the backup feature, creating an archive before deletion and therefore breaks the "no backup" rule.
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 is the difference between --remove-home and --remove-all-files in the deluser command?
Open an interactive chat with Bash
What happens if you use deluser without any options?
Open an interactive chat with Bash
Why does the --backup-to option violate the stated security policy?
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 .