ExamGecko
Question list
Search
Search

Question 9 - 102-500 discussion

Report
Export

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

A.
mydate="$(date)"
Answers
A.
mydate="$(date)"
B.
mydate="exec date"
Answers
B.
mydate="exec date"
C.
mydate="$((date))"
Answers
C.
mydate="$((date))"
D.
mydate="date"
Answers
D.
mydate="date"
E.
mydate="${date}"
Answers
E.
mydate="${date}"
Suggested answer: A
asked 18/09/2024
Pablo Magallanes
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first