How To Change The Date In Linux?


How can we change the date/time in linux?
Ans : Changing date in linux is bit confusing. If you want to change date in GUI its very much easy and if you want to change it when it comes to CLI its bit hard to remember it.

Date is the command to check whats the present date
#date

To change the date use below command
#date MMDDHHMMYYYY.ss

MM => Two digit month value

DD => Two digit day value

HH => Two digit hour value

MM => Two digit minuite value

YYYY => Four digit year value

ss => Two digit seconds value(very rare we will be using this)

Example1 : I want to change the date to Nov 24 1:36 PM 2010

#date 112413362010

Example2 : I want to change the date to Jan 9th 8:05.04 AM 2010

#date 010908052010.04

Now the date will be changed to your required date.

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Related Posts by Categories



    0 comments:

    Archive

    Translate this page

     

    The Linux Juggernaut | Copyright 2006-2009 Surendra Kumar Anne | Surendra's Home Page | Give us feedback how we are doing, Click here