Managing Users (adduser & userdel)
Concept & Overview
While useradd is a low-level utility that merely registers user details in system config files, Debian/Ubuntu systems provide a high-level interactive script called adduser that automates creating home folders, setting passwords, and initializing shell environments. Conversely, userdel cleanly deletes user accounts.
- Running sudo adduser tester guides you through user configuration interactively.
- Running sudo userdel tester deletes the user account.
sudo adduser tester. After that, delete the user by running sudo userdel tester.Command Syntax Reference
| Command / Syntax | Description |
|---|---|
sudo adduser tester | Create user tester interactively |
sudo userdel tester | Delete user tester account |
Verification Objectives
These conditions will be automatically verified when you run commands inside the interactive terminal simulator:
- ○Run the "adduser" command with sudo
- ○Run the "userdel" command with sudo
Ready to complete Quest 134?
Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.