Linux Time – How to Set the Time and Date using Command Date!

by max on Monday, August 17th, 2009
No Comments
Share
Email Email

I just noticed that my web server’s time was ahead by 10 hours for some reasons.  If you run linux dedicated servers, you will want to know how to do this.  I know there’s many ways to do it but this is the simplest/fastest method.

Here’s a really simple way to set time and date on any linux/unix system:

date – Would list the date and time of the server. Below is an example of the output.

Thu Feb 8 16:47:32 MST 2001

date -s “11/20/2003 12:48:00″ – Set the date to the date and time shown.

date ‘+DATE: %m/%d/%y%nTIME:%H:%M:%S’ – Would list the time and date in the below format:

DATE: 02/08/01
TIME:16:44:55

via computerhope

linux-time

(Image Credit)



More Resources

Categories: Computer, DIY, Fedora, HOWTO, Linux, Ubuntu.

Leave a Reply

   Connect with Twitter
If you like this post then please subscribe to our full feed RSS or follow us on Twitter @Zedomax.

You can also subscribe by E-mail by filling out your name and E-mail below:

Name: Email:
Got a new hack, DIY, howto, or gadget you want us to blog about?

Tip us via Twitter @Zedomax or send e-mail to zedomax [at] gmail.com.

You can also use our free Guest Blogger services.

Try Goohack to find a new Hack:

Related News and Resources

?>

Other Interesting News From Our Friends


Featured Sites From Zedomax Blog Network