Which statements about the directory /etc/skel are correct?

Prepare for the LPI Linux Essentials 010-160 Test with our comprehensive quiz platform offering flashcards and multiple choice questions. Hints and explanations provided for each question. Get exam-ready with ease!

The directory /etc/skel is used in the Linux operating system as a template for new user home directories. When a new user account is created, the files and directories contained within /etc/skel are copied into the home directory of that new user. This allows each new user to start with a default set of files, such as configuration files for various applications (like .bashrc or .profile), which establishes an initial environment tailored to typical user needs. This behavior ensures that users have the essential configurations set up upon account creation, making it easier for them to begin using the system immediately.

The other statements do not accurately reflect the purpose or function of /etc/skel. For example, the idea that files in /etc/skel are deleted post user account creation is incorrect, as they are templates meant to be copied, not removed. Similarly, the notion that this directory contains temporary files misrepresents its purpose; instead, it houses user configuration files. Finally, while the useradd command does reference /etc/skel to copy files during account creation, saying it contains a default set of configuration files used specifically by the useradd command could be misleading, as the content is meant for newly created user environments rather than functioning as command configurations.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy