Skip to main content
  1. Public practice questions
  2. AZ-900 Practice Exams | Azure Fundamentals
  3. Domain 2-Describe Azure architecture and services | AZ-900 Practice Exam | 399 Questions

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).

  1. Get-date

  2. time

  3. date

  4. az date

Correct answers

  1. 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.