Valid 102-500 Dumps shared by ExamDiscuss.com for Helping Passing 102-500 Exam! ExamDiscuss.com now offer the newest 102-500 exam dumps, the ExamDiscuss.com 102-500 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 102-500 dumps with Test Engine here:
Which of the following commands puts the output of the command date into the shell variable mydate?
Correct Answer: A
(date)"∗∗Comprehensive∗∗Thecorrectwaytoputtheoutputofthecommanddateintotheshellvariablemydateistousecommandsubstitutionwiththesyntax(command). This will execute the command in a subshell and replace the expression with its standard output. The double quotes around the expression will prevent word splitting and globbing of the output. The other options are incorrect because they will either assign a literal string to the variable, use an invalid syntax, or try to execute the command as an arithmetic expression. Reference: [LPI Linux Essentials - Topic 105: Shells, Scripting and Data Management] [LPI Linux Administrator - Exam 102 Objectives - Topic 105: Shells and Shell Scripting]