LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   need help with date command syntax (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-with-date-command-syntax-78244/)

bigcletus 08-02-2003 01:15 AM

need help with date command syntax
 
I have read the man page and info page and done an internet search, but I am still having a hard time understanding what I need to enter in order to change the date/time? Any help is greatly appreciated. Thanks.

Bebo 08-02-2003 01:40 AM

You login as root, and then you just enter by the prompt "date MMDDHHMM". For instance, if I wanted to change the date to six hours ahead of my current time - which happens to be EST, although (or rather, since) I'm in Chile - I'd write "date 08020840". See? ;)

Edit: Ah, to change the year also, it seems that you just append the year at the end of the date string.






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