nerdexam
Linux_Foundation

LFCS · Question #240

The files in the /etc/skel directory are used by the:

The correct answer is C. useradd command. The /etc/skel directory contains a default set of files and directories that are copied into a new user's home directory during account creation.

Submitted by khalil_dz· Apr 18, 2026User and Group Management

Question

The files in the /etc/skel directory are used by the:

Options

  • Apwconv command
  • Bpwunconv command
  • Cuseradd command
  • Dpasswd command

How the community answered

(50 responses)
  • A
    6% (3)
  • B
    2% (1)
  • C
    90% (45)
  • D
    2% (1)

Why each option

The `/etc/skel` directory contains a default set of files and directories that are copied into a new user's home directory during account creation.

Apwconv command

The `pwconv` command is used to convert shadow password and group files from regular password and group files, not for user creation.

Bpwunconv command

The `pwunconv` command reverts `pwconv`, converting shadow password and group files back to regular password and group files.

Cuseradd commandCorrect

The `useradd` command, when creating a new user account, copies the contents of the `/etc/skel` directory into the newly created user's home directory. This process populates the new user's home with default configuration files and directories, such as `.bashrc` or `.profile`.

Dpasswd command

The `passwd` command is used for changing a user's password, not for creating new user accounts or populating home directories.

Concept tested: `useradd` and `/etc/skel` directory

Source: https://man7.org/linux/man-pages/man8/useradd.8.html

Topics

#useradd command#/etc/skel directory#User creation#User management

Community Discussion

No community discussion yet for this question.

Full LFCS Practice