Script basics · Question 7 of 12

Which forms print the content of the variable file?

3 answers are correct. Easy Created with AI

Show answer

Answer

  • A echo ${file}
  • C echo "$file"
  • D echo $file

Explanation

Inside double quotes and with curly braces, the value is inserted. Single quotes prevent this, so the text $file appears.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications