Linux date Command

In this tutorial we learn how to use date commmand in Linux. date command is date - print or set the system date and time

What is Linux date Command?

In this tutorial we learn how to use date command in Linux. date command is date - print or set the system date and time

date Syntax

       date [OPTION]... [+FORMAT]
       date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]

date Examples

date Command Manual / Help

We can use man and info command to see the manual page of date command.

date command also have --help option to show list of options.

To open man page for date command we can use command below. To exit man or info page you can press q.

man date

To open info page for date command we can use command below.

info date

To open help page from date command we can run command below.

date --help

Linux date Command Source Code

You can find date command source code from the folowing repositories:

You can read tutorials of related Linux commands below:

Summary

In this tutorial we learn how to use date in Linux with practical examples. Visit our Linux Commands guide to learn more about using command line interface in Linux.