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.
-
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' >> ~/.bashrcecho 'export LC_ALL=C' >> ~/.bashrc