LX0-104 · Question #31
What is true about the ntpdate command?
The correct answer is C. It queries one or more NTP time servers and adjusts the system time accordingly.. The ntpdate command queries one or more Network Time Protocol (NTP) servers and adjusts the local system time accordingly.
Question
Options
- AIt is the primary management command for the NTP time server.
- BIt updates the local system's date (i.e. day, month and year) but not the time (i.e. hours, minutes,
- CIt queries one or more NTP time servers and adjusts the system time accordingly.
- DIt sends the local system time to one or many remote NTP time servers for redistribution.
- EIt can be used by any user to set the user clock independently of the system clock.
How the community answered
(66 responses)- A2% (1)
- C92% (61)
- D3% (2)
- E3% (2)
Why each option
The `ntpdate` command queries one or more Network Time Protocol (NTP) servers and adjusts the local system time accordingly.
`ntpdate` is a client tool for immediate synchronization, not the primary management command for a continuous NTP time server (which typically involves `ntpd` and `ntpq`).
`ntpdate` synchronizes the entire system time, including both date (day, month, year) and time (hours, minutes, seconds).
The `ntpdate` command is a client utility designed for a one-shot synchronization of the system clock. It contacts specified NTP servers, determines the correct time, and then steps or slews the local system time to match the accurate time received, without running as a continuous daemon.
`ntpdate` acts as a client to receive time from servers; it does not send local system time to remote servers for redistribution.
Setting the system clock using `ntpdate` requires root privileges and affects the system's global clock, not an independent user-specific clock.
Concept tested: ntpdate command functionality
Source: https://man7.org/linux/man-pages/man8/ntpdate.8.html
Topics
Community Discussion
No community discussion yet for this question.