In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the use of linux hwclock command system settings, I hope you will learn a lot after reading this article, let's discuss it together!
The hwclock command is a hardware clock access tool, which can display the current time, set the time of the hardware clock and set the hardware clock to the system time, or set the system time to the time of the hardware clock.
There are two kinds of clocks in Linux, such as hardware clock and system clock. The hardware clock refers to the clock device on the motherboard, that is, the clock that can usually be set in the BIOS screen. The system clock refers to the clock in kernel. When Linux starts, the system clock reads the setting of the hardware clock, and then the system clock operates independently. All Linux-related instructions and functions are set to read the system clock.
Syntax format: hwclock [parameters]
Common parameters:
-- debug displays detailed information about hwclock execution. -- directisahwclock presets to access hardware clocks from / dev/rtc devices. If it cannot be accessed, you can use this parameter to access the hardware clock directly with the Ihammer O instruction. -- hctosys adjusts the system clock to match the current hardware clock. -- set-- date= sets the hardware clock. -- show displays the time and date of the hardware clock. -- systohc adjusts the hardware clock to match the current system clock. Test only tests the program and does not actually change the hardware clock. -- if utc wants to use Greenwich mean time, add this parameter and hwclock will perform the conversion. -- version displays version information.
Reference example
Setting the hardware time depends on the operating system time, as follows:
[root@linuxcool] # hwclock-- systohc
[root@linuxcool] # hwclock-- systohc-- utc
You can see this in some other versions of Linux, such as RebHat:
[root@linuxcool ~] # cat / etc/sysconfig/clock
View version information:
[root@linuxcool] # hwclock-v after reading this article, I believe you have a certain understanding of the hwclock command system setup using linux, want to know more about it, welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.