LPIC-1 Exam 102 v5 (Linux Administrator) — Question 74
Which of the following tasks can the date command accomplish? (Choose two.)
Answer options
- A. Set the system's date and time.
- B. Set the system's date but not the time.
- C. Calculate the time span between two dates.
- D. Print a calendar for a month or a year.
- E. Display time in a specific format.
Correct answer: A, E
Explanation
The correct answers are A and E because the date command can modify both the date and time settings of the system and can also format the displayed time in various ways. Options B, C, and D are incorrect because the date command does not exclusively set the date without time, does not calculate the time span between dates, and does not print calendars.