Question 1
A Linux administrator faces this requirement: A new user's interactive Bash login must inherit an organization-wide PATH addition without modifying individual homes. Which specific action is the best direct solution?
Explanation
Correct Answer
Add the PATH assignment and export to /etc/profile or an appropriate profile fragment. The mechanism is: Login shells read system-wide profile configuration before user profile files, so this reaches all relevant accounts.
Incorrect Answers
Prefix the command with NAME=value, such as LANG=C sort data.txt. That operation is designed for the different case: A user wants a temporary custom environment value for exactly one command invocation. It does not perform the specific action required here: Add the PATH assignment and export to /etc/profile or an appropriate profile fragment.
Run source /path/config.sh (or . /path/config.sh) rather than executing it as a separate program. That operation is designed for the different case: A deployment script needs to evaluate definitions from a config file in the current running Bash process. It does not perform the specific action required here: Add the PATH assignment and export to /etc/profile or an appropriate profile fragment.
Put the alias definition in that user's ~/.bashrc and start a new interactive Bash shell. That operation is designed for the different case: An administrator wants a Bash alias available to one user's future interactive shells only. It does not perform the specific action required here: Add the PATH assignment and export to /etc/profile or an appropriate profile fragment.






LPI Level 1 (102-500) Practice Tests