Linux Commands Helper

💬 Your AI-powered Linux assistant

useradd Command - Create a New User

The useradd command is used to create a new user account on a Linux system.

Syntax

useradd [options] username

Examples

useradd newuser

Create a new user named newuser with default settings.

useradd -m newuser

Create newuser and its home directory.

useradd -u 1050 newuser

Create newuser with a specific user ID (UID) of 1050.

Notes

  • After creating a user, you usually set a password using passwd.
  • The -m option creates the user's home directory if it doesn't exist.
  • Other useful options: -u (UID), -g (initial group), -s (login shell).

© 2025 Linux Commands Helper. All rights reserved.

This project is under construction. Feedback and contributions are welcome.

Fazier badgeFeatured on Startup Fame