LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   change the time from the command line (https://www.linuxquestions.org/questions/linux-newbie-8/change-the-time-from-the-command-line-219636/)

juanb 08-19-2004 07:23 AM

change the time from the command line
 
Hi,

How can I change the hour from the command line ?

thanks

comprookie2000 08-19-2004 07:59 AM

from root date 091909002004 thats the date0919 the time 0900 and year 2004.

foo_bar_foo 08-19-2004 01:14 PM

my favorite .. in /root/.bashrc
(find a local time server that works for you)
alias set_clock='/usr/local/bin/ntpdate -s 198.82.1.203'

argi6argi 10-31-2007 02:11 AM

as superuser
date -s HH:MM:ss


All times are GMT -5. The time now is 04:43 AM.