[amp_mcq option1=”Date” option2=”Time” option3=”Second” option4=”All of the above” correct=”option1″]
The correct answer is A. Date.
The date command prints the current date and time in a human-readable format. The time command prints the current time in a human-readable format. The second command prints the current time in a numeric format.
The date command is the most efficient way to get the current date only. The time command and the second command will also print the current time, which is unnecessary if you only need the date.