Linux CLI - Environment and Configuration
Given the commands below, what will be the output?
export VAR1=foo VAR2=bar bash -c 'echo $VAR1 $VAR2'
export VAR1=foo VAR2=bar bash -c 'echo $VAR1 $VAR2'
VAR1 is exported, so it is visible in the child shell. VAR2 is not exported, so it is not visible.$VAR1 as foo and $VAR2 as empty, resulting in foo .15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions