useradd

The command that creates a user account.

In more detail

Options set the user ID (-u), primary group (-g), supplementary groups (-G), comment (-c), shell (-s) and home directory (-d, -m). -r creates a system account for a service.

Example

useradd -u 2001 -G devs -c "Mira Okafor" mira

Related terms

Taught in

References

Certification courses