Linux Essentials (010-160) — Question 17
Which command adds the new user tux and creates the user's home directory with default configuration files?
Answer options
- A. defaultuser tux
- B. useradd -m tux
- C. usercreate tux
- D. useradd -o default tux
- E. passwd -a tux
Correct answer: B
Explanation
The command 'useradd -m tux' is correct because the '-m' option specifically ensures that a home directory is created along with the user. The other options either do not create a user or do not provide the necessary parameters to establish a home directory with default files.