010-160 · Question #77
Which statements about the directory /etc/skel are correct? (Choose two.)
The correct answer is C. The files from the directory are copied to the home directory of a new user when the account is created. D. The directory contains a default set of configuration files used by the useradd command. The /etc/skel directory holds default configuration files that are copied into a new user's home directory at account creation time by the useradd command.
Question
Options
- AThe personal user settings of root are stored in this directory.
- BBy running the command with the option ?!? or ?=!
- CThe files from the directory are copied to the home directory of a new user when the account is created.
- DThe directory contains a default set of configuration files used by the useradd command.
- EThe directory contains the global settings for the Linux system.
How the community answered
(47 responses)- A2% (1)
- B4% (2)
- C91% (43)
- E2% (1)
Why each option
The /etc/skel directory holds default configuration files that are copied into a new user's home directory at account creation time by the useradd command.
Root's personal configuration files (e.g., .bashrc, .profile) are stored in /root, not in /etc/skel.
This choice contains garbled, invalid text and does not describe any real Linux concept or command.
When useradd creates a new user account, it copies all files and directories from /etc/skel into the newly created home directory, giving the user a standard baseline environment.
The /etc/skel directory serves as the skeleton template referenced by useradd; any files placed there become the default starting configuration for every new user's home directory.
Global system settings are stored in files under /etc directly (e.g., /etc/profile, /etc/environment), not in /etc/skel.
Concept tested: Purpose and function of /etc/skel directory
Source: https://www.man7.org/linux/man-pages/man8/useradd.8.html
Topics
Community Discussion
No community discussion yet for this question.