You are writing a provisioning script on a systemd host and need the exact spelling of the zone name for Auckland so you can grep for it. Which command prints the full list of valid time zone names to standard output?

LPIC-1 Exam 102-500, objective 107. Administrative tasks easy

Machine-checked — no person has signed for it. This question was read against the source cited below by an automated pass, which found no contradiction. That is a weaker claim than it sounds: the same kind of process wrote the question, so it can confirm its own mistake.

Treat it as a good draft rather than as settled fact, and read the source below before you rely on it. It is not used in mock exams here — only questions a person has signed for are.

How these questions are written — where each question comes from, what the verification ledger records, and what happens when one is found wrong.

The options

Correct timedatectl list-timezones

Correct. It prints every zone name the system knows, one per line, in the Region/City form that set-timezone expects.

Not correct timedatectl status

Wrong. status reports the current state: local time, universal time, the configured zone, and whether the NTP client and RTC-in-local-time settings are active. It lists no alternatives.

Not correct tzselect

Wrong for a script. tzselect is an interactive questionnaire that narrows down a zone by continent and country and then prints a suggested TZ value. It expects a human at the keyboard.

Not correct timedatectl set-timezone --list

Wrong. set-timezone takes exactly one zone name and applies it; there is no --list option, and invoking it in a discovery script risks changing the machine's configuration.

Why

timedatectl is the systemd front end for clock and time zone settings: status reads, list-timezones enumerates, set-timezone writes, set-time sets the clock, and set-ntp toggles network synchronisation. Its list is derived from the same zoneinfo database you could walk by hand under /usr/share/zoneinfo, which is why the names match exactly.

Where this comes from

Cited
manual page timedatectl(1)

Practise this

Reading one question is not practice. The trainer will draw a short set from objective 107 and space the ones you get wrong.

Practise LPIC-1 Exam 102-500

More questions on this objective

All questions on Administrative tasks

Practise LPIC-1 Exam 102-500