What script is run for setting bash global defaults for all users? A. /etc/.profile B. /etc/.bashrc C. /etc/.log D. /etc/profile E. None of the above

/etc/.profile
/etc/.bashrc
/etc/.log
/etc/profile E. None of the above

The correct answer is: A. /etc/.profile

The /etc/.profile file is a shell script that is executed for all users when they log in. It is used to set environment variables and other settings that are common to all users.

The /etc/.bashrc file is a shell script that is executed for each user when they open a new Bash shell. It is used to set environment variables and other settings that are specific to the user.

The /etc/.log file is a log file that is used to store system logs. It is not used to set bash global defaults for all users.

The /etc/profile file is the correct answer because it is executed for all users when they log in and it is used to set environment variables and other settings that are common to all users.

Exit mobile version