Showing posts with label date command in unix. Show all posts
Showing posts with label date command in unix. Show all posts

Saturday, July 25, 2009

how to change system date in linux

0 comments
his 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:-

$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 :) . modify system date in linux is very simple

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