You are configuring a Linux system for 10 different users. Before you create the user accounts, you need to ensure that specific commands execute clean up tasks when the user logs out of the Linux system. You want to reduce redundant actions by configuring the commands once for all users that will be created on the system. Where should you configure the commands?

Respuesta :

Answer:

/etc/skel/.bash_logout

Explanation:

The /etc/skel directory contains files and folders that will be copied in the new user’s home directory (login directory), when that user is created with useradd or other commands.

The skeleton directory, /etc/skel, allows the administrator (the root user) to create new users having the same files and folders in their home directories.

By default, some configuration files are usually placed in the /etc/skel directory after the operating system is installed:

  •    /etc/skel/.bash_logout
  •    /etc/skel/.bashrc
  •    /etc/skel/.profile
  •    /etc/skel/.vimrc