LPI
101-500 · Question #285
What does the following command do? cat '$TEST'
The correct answer is B. Displays the contents of the file named $TEST if it exists. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Shells and Shell Scripting
Question
What does the following command do? cat '$TEST'
Options
- ADisplays a bash syntax error message.
- BDisplays the contents of the file named $TEST if it exists.
- CWaitsfor the user to enter text and then echos the text back.
- DDisplays the contents of the file named inside the back quotes.
- EDisplays the contents of the named by the environment variable TEST.
How the community answered
(31 responses)- A3% (1)
- B94% (29)
- D3% (1)
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#Shell quoting#Variable expansion#Single quotes#cat command
Community Discussion
No community discussion yet for this question.