FreeBSD : Data set and change

Display the date:

Simply type the date command to display the current date:

# date


Fri Mar   12 12:44:29 CST 2010

To set/change date:

To set the date, you need to simply use the date command followed by the year, month, day, hour, minute, and second … all numeric and no spaces.

To set the date with date command, you need to follow this format:

# date yymmddhhMMss

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.