A system administrator wants to define a PATH update and set a default umask for every user when they log in with a Bourne-compatible shell. Which file should be modified to implement these changes across all existing accounts?
The chosen file is sourced by all Bourne-compatible (sh, bash, ksh) login shells. It applies system-wide environment settings before any user-specific scripts. The other files are either not processed at login by those shells, apply only to interactive or non-login sessions, or reside in a user’s skeleton directory and affect only new accounts.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of /etc/profile in Linux?
Open an interactive chat with Bash
What is the difference between /etc/profile and ~/.bash_profile?
Open an interactive chat with Bash
What is the function of 'umask' and why is it set in /etc/profile?