Date Command in Linux
The date command in linux is used to display the current time in the given format, or set the system time.
Besides checking the date, you can do couple of more things using the date command like identifying a week or day from a date, calculating the time from epoch to a specified time, and a few more variations.
Options available in date command :-
1. -d , — date = “string” : Display the given date string.
2. Format options :
Recommended by LinkedIn
These are the most common formatting characters for the date command:
3. — set option : Set or Change Date in Linux.
4. Display the past and future dates : Use the --date option to display past and future dates in Linux.
5. -r : Print the last modification time of a file.
. . .
Thank-you!
Hope you find this blog post helpful. Share it with your friends!