Forrest logo
back to the adduser tool

adduser:tldr:81602

adduser: Create a new user with the specified shell set as the login shell.
$ adduser --shell ${path-to-shell} ${username}
try on your machine

The adduser command is used to create a new user account on a Linux system. Let's break down the given command:

  • adduser: This is the command itself, used to create a new user.
  • --shell ${path-to-shell}: This option allows you to specify the desired login shell for the new user. The ${path-to-shell} should be replaced with the actual path to the shell binary or interpreter (e.g., /bin/bash). The user's shell defines the command interpreter they use when they log in.
  • ${username}: This is the username for the new user account. It should be replaced with the desired username for the new user.

To summarize, the given command creates a new user account with the specified username and assigns the shell specified by ${path-to-shell} to the user.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the adduser tool