Site Fuse! programming, design, hosting, promotion and advertising tips for webmasters

How to set your server's date and time (system clock)

Home  \  Forums  \  IT, Hosting & Domain Forums  \  Linux Server Administration Forums  \  How to set your server's date and time (system clock)
Share   

user photo

MrPhear   1 years, 6 months ago

To learn the current date and time of your server. Login through ssh or telnet to the server and type;

date


To set the system clock under Linux, use the date command. As an example, to set the current time and date to July 10, 11:16 PM, type;

date 07102316 (note that the time is given in 24 hour notation)


If you wanted to change the year as well, you could type;

date 071023162004


To set the seconds as well, type;

date 07312316.30 or date 073123162004.30
user photo
Guest