Posted: . At: 5:54 PM. This was 12 years ago. Post ID: 2982
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

How to set the correct time with the command-line on Debian.

Setting the system time with Debian Linux is very simple, using the date command, you may display the current date/time, then copy this to the date -s “” command and then edit it to the proper value. This is the easiest technique to set the Linux system time.

This is the existing date.

root@deusexmachina:/home/neo# date
Sun Mar 25 06:43:17 EST 2012

So, we have to set a new date on the machine.

root@deusexmachina:/home/neo# date -s "Sun Mar 25 17:43:17 EST 2012"
Sun Mar 25 17:43:17 EST 2012
root@deusexmachina:/home/neo#

Now the date is correct.

Leave a Comment

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