Question 300 — Domain 2-Describe Azure architecture and services | AZ-900 Practice Exam | 399 Questions
Which command would you use in BASH CLI to get the current date and time? (Select one answer).
Get-date
time
date
az date
Correct answers
date
Explanations
Correct:
date
In BASH CLI, the date command retrieves and displays the current date and time.
Wrong:
Get-date
This is a PowerShell command, not recognized in BASH.
time
The time command measures the duration of command execution, not the current date and time.
az date
This is not a valid Azure CLI command; Azure commands follow specific functionalities and do not include a command for retrieving the date.