Linux CLI - Environment and Configuration
What will be the output of the following commands?
MYVAR=hello export MYVAR bash -c 'echo $MYVAR'
MYVAR=hello export MYVAR bash -c 'echo $MYVAR'
MYVAR=hello and exporting it makes it available to child shells.bash -c 'echo $MYVAR' runs a new shell that inherits exported variables, so it prints hello.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions