Displaying dates and times your way
The date command on Linux systems is very straightforward. You type “date” and the date and time are displayed in a useful way. It includes the day-of-the-week, calendar date, time and time zone:
$ date Tue 26 Nov 2019 11:45:11 AM EST
As long as your system is configured properly, you’ll see the date and current time along with your time zone.
The command, however, also offers a lot of options to display date and time information differently. For example, if you want to display dates in the most useful format for sorting, you might want to use a command like this: