010-160 practice question 5 of 15

The file script.sh in the current directory contains the following content: #!/bin/bash echo $MYVAR The following commands are used to execute this…

Choose your answer, then check it against the explanation.

The file script.sh in the current directory contains the following content: #!/bin/bash echo $MYVAR The following commands are used to execute this script: MYVAR=value ./script.sh The result is an empty line instead of the content of the variable MYVAR. How should MYVAR be set in order to make script.sh display the content of MYVAR?
Answer options
Question 5 of 15

Keep practicing

Take the free 010-160 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other 010-160 practice questions

Scroll to Top