102-500 practice question 24 of 30
Which of the following tasks can be accomplished using the command date? (Choose TWO correct answers.)
Full set: 233 questionsThe date command is a standard utility for displaying and setting the system's date and time. Its primary functions include printing the current date and time in a default or user-specified format using the +FORMAT option. Additionally, with superuser privileges, it can set the system clock using the -s or --set flag followed by a date string. It does not interact directly with the hardware clock or NTP services.
A. The hwclock command is used to synchronize the hardware clock (RTC) and the system clock, not date.
D. The hwclock command is used to set the hardware clock, which is distinct from the system clock that date manages.
E. Time synchronization via NTP is handled by daemons like ntpd, chronyd, or the command ntpdate, not date.
1. GNU Coreutils, date invocation. (2022). "The date command can be used to print the current date and time in a variety of formats, or to set the system's date and time." Section 14.1, date: Print or set system date and time.
2. date(1) — Linux manual page. "Display the current time in the given FORMAT, or set the system date... -s, --set=STRING set time described by STRING".
Keep practicing
Take the free 102-500 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 102-500 practice questions
- Question 1What output is produced by the following command sequence? echo ‘1 2 3 4 5 6’ | while rea…
- Question 2Which command will set the local machine's timezone to UTC?
- Question 3Which of the following SQL statements will select the fields name and address from the co…
- Question 4Which of the following commands can remove a user from a group?
- Question 5Where are user specific crontabs stored?
- Question 6Which of the following crontab entries will execute myscript at 30 minutes past every hou…
