What output will be displayed when the user fred executes the following command?

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’

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “What output will be displayed when the user fred executes the following command?

  1. Text within single quotes is not changed by the shell. So all special characters contained in it lose their special meaning. Variables are not replaced by their value.

    Within quotation marks, all special characters except $ lose their special meaning. Shell or environment variables that occur within these characters are therefore replaced by their value.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.