The correct command to put the output of the date command into the shell variable mydate is:
A. mydate="$(date)"
In this command, the output of the date command is captured and stored in the mydate variable using command substitution (the syntax $(command)). The value stored in mydate will be a string representing the date and time returned by the date command.
Command substitution is a feature in the bash shell that allows you to execute a command and capture its output as a string. It is denoted by enclosing the command in the syntax $(command).
upvoted 1 times
...
...
This section is not available anymore. Please use the main Exam Page.LX0-104 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
linux_admin
2 years, 2 months agolinux_admin
2 years, 2 months ago