Print current date time in Linux
To print current date and time in shell in Linux, we can use date command.
The date command prints the current timestamp to the output.
In this example, we get the current date and time in shell.
Run the command date in the terminal as shown in the following.
In this Linux Tutorial, we learned how to display current date and time in shell, using date command.