Posted on

Linux LX0-104 Exam 2 samples – Question 15

Which of the following commands puts the output of the command date into the shell variable mydate?

A. mydate=”$(date)”
B. mydate=”exec date”
C. mydate=”$((date))”
D. mydate=”date”
E. mydate=”${date}”

Correct Answer: A
Section: Shells, Scripting and Data Management

Leave a Reply

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