Hi, this is Sandra Henry-Stocker, author of the “Unix as a Second Language” blog on NetworkWorld.
In this Linux tip, we’re going to look at the date command. In its simplest form, it provides the date and time in a nice format, including the time zone. It also has options that allow you to display this information in many different ways.
One reason you might want to display this kind of information in different ways is when you’re adding information to a log file of some sort. For example, you might put lines like these in a script to print the date on one line and just the time in later lines.
Another reason is that you might want to see what the current time is in another time zone.
You can even get the date command to tell you the date for Friday of next week.
That’s your Linux tip for the date command.
If you have questions or would like to suggest a topic, please add a comment below. And don’t forget to subscribe to the IDG Tech(talk) channel on YouTube.
If you liked this video, please hit the like and share buttons. For more Linux tips, be sure to follow us on Facebook, YouTube and NetworkWorld.com.