Skip to content
masterclass Buddy

Linux & Shell · Command

useradd

useradd creates a new user account from command-line options and system defaults. It can also create a home directory, copy starter files, and set groups or a login shell.

Last updated

Syntax

useradd [ options ] LOGIN
useradd -D
useradd -D [ options ]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • usermod
  • userdel
  • groupadd
  • subuid
  • /etc/default/useradd
  • /etc/login.defs

Source: useradd(8) - Linux manual page. Checked 2026-11-03.