QuestionQ13Verified/Shells and Shell ScriptingCopy linkReport a problemAsk AstroTutorSave questionWhat output will be displayed when the user fred runs the following command? echo 'fred $USER'Afred fredBfred /home/fred/C'fred $USER'Dfred $USERE'fred fred'Show AnswerAnswerExplanationSingle quotes prevent shell parameter expansion, so $USER remains literal text. The shell removes the enclosing quotation marks before invoking echo, which prints fred $USER.Show comments4Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion