-2

Want to create multiple user in Linux, but first need to check user already exists or not,if not exist the user get created.

1 Answers1

1

Take a look at this:

https://linux.die.net/man/8/newusers

It will allow you to create new users in batch from a file.

  • The command to add a new user is distribution dependent and also the question states how does the Masoom check if a user exists before creating. This partly answers the question. – fswings Oct 22 '20 at 20:20