LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   set time (https://www.linuxquestions.org/questions/linux-newbie-8/set-time-364948/)

mohtasham1983 09-19-2005 01:40 PM

set time
 
how can I set the time using bash?

david_ross 09-19-2005 02:01 PM

You can do it manually with:
date --set="whatever the time is now"

Or to set it via ntp then use ntpdate.

dracolich 09-19-2005 03:08 PM

When setting it with the date command, to store it you have to also use

/sbin/hwclock --systohc

homey 09-19-2005 04:23 PM

You get your post closed in Linux General so you repost in Newbie!!!?
Anyway, I would be amazed if crossover is so dumb that you can just reset the time and have the program forget when it was installed.


All times are GMT -5. The time now is 08:41 PM.