Display Date And Time In Linux

How to get the current date and time in Linux OS.

To display the current date and time by using command line, you can use below code

Open a terminal and type the following command:

It outputs like

Even you can use format to print the date and time in Linux

will output like this

To print the date before 3 days you can use as below

Editorial Staff
 

Editorial Staff at tutsplanet is a dedicated team to write various tutorial articles.