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

Posted by: Pdfprep Category: 102-500 Tags: , ,

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}"

Answer: A

Leave a Reply

Your email address will not be published.