Linux Foundation Certified System Administrator (LFCS) — Question 87

Which of the following command sets the Bash variable named TEST with the content FOO?

Answer options

Correct answer: D

Explanation

The correct answer is D because it uses the proper syntax for variable assignment in Bash, which does not include spaces around the equals sign. Options A, B, and C are incorrect due to either incorrect syntax or the use of a non-existent command.