LPI
102-500 · Question #82
Which of the following commands puts the output of the command date into the shell variable mydate?
Sign in or unlock 102-500 to reveal the answer and full explanation for question #82. The question stem and answer options stay visible for context.
Shells and Shell Scripting
Question
Which of the following commands puts the output of the command date into the shell variable mydate?
Options
- Amydate="date"
- Bmydate="exec date"
- Cmydate="$((date))"
- Dmydate="$(date)"
- Emydate="${date}"
Unlock 102-500 to see the answer
You've previewed enough free 102-500 questions. Unlock 102-500 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#command substitution#shell variables#bash syntax#process output