Linux_FoundationLinux_Foundation
LFCS · Question #47
LFCS Question #47: Real Exam Question with Answer & Explanation
The correct answer is B: Output date and time in different formats.. The date command in Linux allows users to both display the current system date and time in various formats and manually set the system clock. It provides flexibility for managing the system's time.
Submitted by carter_n· Apr 18, 2026Essential Commands
Question
Which of the following tasks can be accomplished using the command date? (Choose TWO correct answers.)
Options
- ASynchronize the hardware and system clocks.
- BOutput date and time in different formats.
- CSet the system clock.
- DSet the hardware clock.
- EUpdate the time via NTP.
Explanation
The date command in Linux allows users to both display the current system date and time in various formats and manually set the system clock. It provides flexibility for managing the system's time.
Common mistakes.
- A. The
datecommand itself does not synchronize the hardware and system clocks; this is typically done usinghwclock. - D. While
datesets the system clock, thehwclockcommand is specifically used to manage the hardware clock;datedoes not directly set the hardware clock. - E. Updating the time via NTP (Network Time Protocol) is handled by NTP client daemons (e.g.,
ntpd,chronyd), not thedatecommand.
Concept tested. date command usage
Reference. https://man7.org/linux/man-pages/man1/date.1.html
Topics
#date command#system clock#time management#command line utilities
Community Discussion
No community discussion yet for this question.