Creating a User Account on Linux
This is an example of how to create a user account on a Linux system.
note
This is for illustrative purposes only. Consult the Linux documentation for your system before attempting to create a user account.
To create a user account on Linux:
-
Create the user account.
-
useradd -m risc
-
-
Set the user's password.
-
passwd risc
-
-
Configure the PATH and LC_ALL variables for the user account by modifying the shell initialization files.
-
echo 'export PATH=$PATH:/sbin' >> ~/.bashrc -
echo 'export LC_ALL=C' >> ~/.bashrc
-
useradd -m risc
passwd risc
echo 'export PATH=$PATH:/sbin' >> ~/.bashrc
echo 'export LC_ALL=C' >> ~/.bashrc