Command line · Question 8 of 12

How do you print the value of the variable NAME in Bash?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • C echo $NAME

Explanation

The dollar sign in front of the name expands the variable. Without $, echo just prints the word NAME; %NAME% is the syntax of the Windows command prompt.

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