What output will be displayed when the user fred executes the following command?echo ‘fred $USER’

What output will be displayed when the user fred executes the following command?echo ‘fred $USER’
A . fred fred
B . fred /home/fred/
C . ‘fred $USER’
D . fred $USER
E . ‘fred fred’

Answer: D

Latest 101-500 Dumps Valid Version with 242 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
Francis
Francis
1 year ago

NO. Completely wrong answer.
In single quotes, $USER is not expanded, so it is intepreted AS IS: fred $USER.
While in double quotes, $USER is intepreted as (environment) variable and expanded: fred fred.

Please, correct.