How to change system date in Linux


change system date, modify system date, system date linux, linux
This morning i need to change system date in linux to test one of my application. Too bad i’m not familiar with command line command linux. So after googling for sometime, i manage to find out how to change system date in Linux using command line.

To change system date in linux, type:-

Advertisements

$date MMDDhhmmYYYY.ss

For example: i want to change my system date to Jun 29 2006, 3.30pm, i will type:-
$date 062915302006

It’s simple 🙂

Note:
MM – month
DD – day
YYYY – year
hh – hour is based on 24 hour
mm – minutes
ss – seconds

Technorati Tags: , , , , , ,

Related posts:






Share this with your friends:-

4 Responses to “How to change system date in Linux”

  1. Cheers says:

    how do you change the timezone 😉

  2. dev_D says:

    thanks dear…!

  3. Dev says:

    Which command should i use to change the session date without using the root user-id?

  4. Jim says:

    also, try:

    date -s MMDDhhmmYYYY.ss

    -s = set

Leave a Reply