Displaying dates and times on Linux
Linux provides a lot of ways to display date and time information and not just for the current date and time. You can get information on dates way in the past or in the far future. You can also limit the data provided to just the current weekday or month. This post explains many of these options and provides examples of what you can expect to see.
Displaying the current date
Typing “date” on the Linux command line results in quite a bit more data than just the date. It also includes the day of the week, the current time and the time zone.
$ date Mon Oct 16 11:24:44 AM EDT 2023
The command shown below gives displays the date in the shorthand month/day/year format.