Question 460
In an LPIC-1 102-500 administration task, A script requires a fixed global time reference and must not depend on the user's configured TZ. Which action should be taken?
Explanation
Correct Answer
The appropriate operation is Run date with TZ=UTC or explicitly request UTC output. The case hinges on the fact that The timezone environment selects local display; UTC output avoids location assumptions; a passing check is Two test users with different timezones generate the same UTC instant.
Incorrect Answers
That option does not correct the stated dependency. In this case, The timezone environment selects local display; UTC output avoids location assumptions; implement Run date with TZ=UTC or explicitly request UTC output and check Two test users with different timezones generate the same UTC instant.
Although that change may be valid elsewhere, it responds to A Linux host keeps accurate software time but its hardware RTC is configured to a different local timezone, not to this system state. The relevant fix is Run date with TZ=UTC or explicitly request UTC output.
Although that change may be valid elsewhere, it responds to A service needs the current timestamp as ISO text for an audit record, not to this system state. The relevant fix is Run date with TZ=UTC or explicitly request UTC output.