• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Changing time/date in linux

tm37

Lifer
How Do I change the date/ time using command line functions in linux?

I am Running a clark connect box and It doesn't have a way to set the time without shuting it down (BIOS) or using command line functions.
 


<< ScreenShot

What DO I type EXACTLY?🙂

Thsi is really bumming me out all my bandwidth reports have the wrong dates!🙁

Thanks
>>



"man date" 😀

"date 05092002" is what I would have to type on my home system (OpenBSD). Its probably similar for you. You may need the -s flag, so try "date -s 05092002"
 
The only problem with date (besides the somewhat cryptic format) is that you might need to use hwclock to make the change permanent after reboot.

That parts easy though:

# hwclock --systohc
 
OK I am now TOTALLY confused.

When I type date -s 05082002 it says-

Invaid date

I get the same error when I type it in wen May 8 23:43:00 CDT 2002
 
GOT IT!

Dropped the WEN part and it worked!



<< Either read the man page or give me root access to the machine >>



DO you really want root acess to my router?
 


<< GOT IT!

Dropped the WEN part and it worked!



<< Either read the man page or give me root access to the machine >>



DO you really want root acess to my router?
>>



Nope, but I thought that option might give you the incentive to check the help 😉

Also, "date --help" should give you some of the options. Upon review, the command I gave you was wrong, that would be how I would change the time not date. I dont think Ive ever changed the date now that I think about it 😛
 
I did the Date -help thing But HAD NO IDEA how to make the changes🙁 Basically I could have been reading it in swahilli and It would have been the same.

The great thing about these forums is I have learned alot by people at least pointing me in the right direction.

Next will be learning to run RPM files!🙂

Not tonight though I have an interview tommorow. (NO MENTION OF LINUX ON THE RESUME😉)
 
Back
Top