![]() Let's set the hardware clock to local time: hwclock -set -date=" 16:45:05" -localtime ![]() Will output something like this: Thu Apr 19 15:26: Will output something like this: Thu 03:23:05 PM BOT -0.785086 seconds We'll see differences between hardware clock and system clock hwclock -show This is because it has a lithium battery in the modern computers and another type of battery in the old ones. The hardware clock is the clock that runs in you PC hardware even if you disconnect it from the main power supply. Will show you something like this: Thu Apr 19 15:17: Set time and date from the command line date -s " 11:14:00" ![]() Set time from the command line date +%T -s "11:14:00" Set date from the command line date +%Y%m%d -s "20120418" The server and system clock needs to be on time. It does not matter if you are using Linux to power your personal computer or you have a Linux server. To have the correct time and date in Linux is very important, a lot of things depends on it. Set Time, Date Timezone in Linux from Command Line or Gnome | Use ntp
0 Comments
Leave a Reply. |