How to Show the Date in Linux



Linux


In this article, we show how to show the current date in linux.

So, in linux, there is a date command.

This command is simple. It is simply, date

By specifying this in a Linux command terminal, we can output the current date.

So again the code to show the date is shown below.



Running this code, we get the following output shown below.

Showing the date in linux

So now you see the date output in the linux terminal.

This code was run on my linux terminal on August 22. You can see the day (Tuesday), the date, and the time.

So this is a good basic function to show the date in a linux command terminal.


Related Resources

How to Randomly Select From or Shuffle a List in Python



HTML Comment Box is loading comments...