Which command is used to display current date and time in Linux?

Explore the Linux Fundamentals Test. Revise with flashcards and multiple choice questions, each with hints and explanations. Prepare thoroughly for your Linux exam!

The command used to display the current date and time in Linux is "date." When you execute this command in a terminal, it retrieves and displays the system's current date and time in a user-friendly format. The functionality provided by the "date" command goes beyond just displaying the current date and time; it can also be formatted to show various components of the date, perform date arithmetic, and display dates in different time zones, among other features.

The other options listed do not fulfill the purpose of showing the current date and time in the same way. "time" is typically used to measure how long a command takes to run, while "datetime" and "now" are not standard commands in Linux. Hence, "date" is the correct command for this task.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy