CompTIA Linux+ XK0-006 (V8) Practice Question

While standardizing new local user environments on a Linux server, you prepare customized copies of .bashrc and .vimrc that should exist as real files inside every future user's home directory. You want the files to be created automatically whenever administrators run "useradd -m" without adding post-creation scripts or extra command-line options. Which action will achieve this goal?

  • Copy the prepared template files into /etc/skel so useradd duplicates them into the new user's home directory during account creation.

  • Set a SKEL entry in /etc/login.defs to /home/company_skel and place the templates in that directory.

  • Add commands in /etc/profile that source the templates from a shared location whenever an interactive shell starts.

  • Append the file names to a COPY_FILES variable in /etc/default/useradd so that useradd copies them after it creates the account.

CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot