Beginner Linux & Shell Scripting
Q23 / 100

How do you access the value of a variable named "name" in a bash script?

Correct! Well done.

Incorrect.

The correct answer is B) $name or ${name}

B

Correct Answer

$name or ${name}

Explanation

Prefixing a variable name with "$" (optionally enclosed in braces, "${name}") expands to its value when referenced in commands or strings.

Progress
23/100