Difficulty: Easy
Correct Answer: All of the above
Explanation:
Introduction / Context:
Linux provides multiple administrator tools to create local users. Depending on the distribution, there may be both low-level commands and higher-level wrappers or configuration utilities. Understanding these options helps when working across diverse environments and historical systems.
Given Data / Assumptions:
Concept / Approach:
useradd is a standard low-level utility that creates the account and can set default shell, home directory, UID/GID options. adduser (Debian/Ubuntu and some others) is a friendlier front end that prompts interactively and then calls useradd under the hood. Older administrative tools (e.g., linuxconf) also provided account management through a TUI/GUI.
Step-by-Step Solution:
Verification / Alternative check:
Confirm with getent passwd amit and check /home/amit. Verify group membership via id amit.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
All of the above.
Discussion & Comments