System Management
The file /opt/app/env.sh contains export statements that set DB_HOST and DB_PORT. After an administrator runs /opt/app/env.sh, echo $DB_HOST in the same terminal prints nothing. Which command makes the variables available in the current shell?
Show the answer
Correct answerD. source /opt/app/env.sh
source runs the file's commands inside the current shell, so the exports persist. Running the script directly or through bash starts a child process, and its variables vanish when it exits. nohup and & also run it as a separate process.