Print current date time in Linux

To print current date and time in shell in Linux, we can use date command.

</>
Copy
date

The date command prints the current timestamp to the output.

Example

In this example, we get the current date and time in shell.

Run the command date in the terminal as shown in the following.

Linux - Print current date time

Conclusion

In this Linux Tutorial, we learned how to display current date and time in shell, using date command.