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 the /etc/profile file?
Open an interactive chat with Bash
What is umask and why is it important?
Open an interactive chat with Bash
What are Bourne-compatible shells, and how do they differ from other shell types?