Wednesday, September 28, 2011

Set the Date and Time on Solaris

Setting the system date and time is fairly easy on solaris. Because you can easily set the time from the command line, you can set the time on a server remotely.


date mmddhhmmyy

The date command takes the syntax mmddhhmmyy, or “month day hour minute year”. You have to be superuser to set the time.

Example:

# date 1201010111

Fri Dec 1 01:01:00 PST 2011


Have a nice Day!

No comments:

Post a Comment