Changing Date and Time in Linux

Syntex:
1. date -s "DD Mon YYYY hh:mm:ss"

2. date set="DD Mon YYYY hh:mm:ss"

3. date MMDDhhmmYYYY.ss

Example:
1. date -s "28 NOV 2008 13:45:00"

2. date set="28 NOV 2008 13:45:00"

3. date 112813452009

Setting Time in Linux

Syntex:
date +%T -s "hh:mm:ss"

Example:
date +%T -s "10:13:13"

Comments

  1. this is very useful, will it work in ubuntu? will you join our blog community @ http://pinoygeeks.net

    ReplyDelete
  2. Hi friends,

    Changing the date and time from the Linux desktop is very easy. Usually all you need to do is right click on the desktop clock and choose adjust date and time. In case we are using a non GUI environment like Ububtu server we need to use the command line for that. Thanks a lot.....

    Web Data Harvesting

    ReplyDelete

Post a Comment

Popular posts from this blog

Scraping an Entire Website using LINUX

Radiator Radius Installation connecting to ORACLE (CentOS)

How to enable clustering in Openfire Enterprise?