$
Learn Linux handbook
en
XP:0
Quest 134Supervisor
+180 XP

Managing Users (adduser & userdel)

Launch Interactive Terminal for This Quest→No installation required • Runs fully in browser

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.

Let's handle user lifecycles. Create a user using sudo adduser tester. After that, delete the user by running sudo userdel tester.

Command Syntax Reference

Command / SyntaxDescription
sudo adduser testerCreate user tester interactively
sudo userdel testerDelete 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.