How to set datetime in Linux system by command line

Yesterday, I found problem about date&time system on Linux server virtual machine on VMServer. That virtual machine has shifted time by automatic and this is example how to use command line set date&time in Linux server. If you want to set current date&time to January 30, 2008 22:56:42 , you can use this command.

# date 013022562008.42

But I think, this is not good solution for fix this problem, it should be used synchronize time by NTP(Network Time Protocol) server .
Why does virtual machine on vmware shift time?

And this is answer.

Related Posts

This entry was posted in linux and tagged , , . Bookmark the permalink.

2 Responses to How to set datetime in Linux system by command line

  1. joezine says:

    You should use synchronize time by NTP because it’s forced on the law.

  2. aoddy says:

    Ohh , really. I don’t know that.
    Thank, krub. :D

Leave a Reply

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

*

*


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">