Creating users in CentOS 8

Which of these commands should you use to create a user named ‘sampleuser’ with a home directory and the ability to log in to the system?

Note: You are working on a CentOS 8 system.

1.sudo useradd -m sampleuser
2.useradd -m sampleuser

3.useradd -u sampleuser

4.sudo useradd -l sampleuser

Related Posts