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.