Contents[Hide]

1. useradd

If you do not wish to add new user account to into your Linux system by using a GUI tools, you can do this task from a command line with useradd command.

useradd -mc "user name" -s /bin/bash john

The previous command will create a new user account for user john. -mc options instruct a useradd comment to put a comment about new user which is very often use to specify user's full name. -s option will select path the a default shell.

2. adduser

Another way to add use is to use adduser command. However this command may not be available on every distribution of Linux. Simply type:

adduser john

and follow instructions to answer some details regarding to a new user account.



Free Linux eBooks

Do you have the right skills?

Our IT Skills Watch page reflects an up to date IT skills demand leaning towards the Linux and Unix environment. We have considered a number of skills and operating systems.

See the result...

Linux Online Training

Learn to run Linux servers and prepare for LPI certification with Linux Academy. 104 available video lessons with PDF course notes with your own server!

Go to top