LPIC-1 101-500 Exam · Objective 103.1

Passing a variable to a child shell

103.1Basic

The following two lines were run in the current Bash, and the result was <>.

Without changing LAB_COLOR, make the second command print <blue> when it is run again.

LAB_COLOR=blue
bash -c 'printf "<%s>\n" "$LAB_COLOR"'

Which command should be added between the two lines?

Passing a variable to a child shell · Answer choices
Question IDKP-103-001
EnvironmentUbuntu 24.04 / GNU tools
Last technical review2026-08-11
Report an error or rights issue
Progress and questions

Path & Pass is an independent learning site and is not affiliated with any certification body. Questions are original practice content based on published objectives.