Mar 8, 2013

Set Date and Time on Linux

Check if your date and time are set correctly under your linux box.

Fri Mar 8 13:40:44 BTT 2013

Set Date:

1. date +%Y%m%d -s "20130308"

Set Time:

1. date +%T%p -s "01:12:30PM"

Check the Hardware Clock
1. hwclock --show

Sync the system date and time with hardware date and time
1. hwclock --systohc

No comments:

Post a Comment