Linux Labs

Inside the system: resources, kernel, processes / Stage 11 of 12

Time, time zone and synchronisation

Not running Starting usually ~20 s
Leave the lesson

Step 7 of 7 · summary · 2 min

Summary

  • The machine's clock holds a moment — seconds since 1970 in UTC — and the time zone only turns it into hours for a person.
  • cron reads the schedule in the machine's zone; a TZ= line in the schedule file changes only the job's environment.
  • chrony checks the clock against the servers from the server lines: chronyc sources shows the servers, chronyc tracking the difference.
  • Slewing aligns the clock gently, a step does it at once: at startup by the makestep line or on command with chronyc makestep.
  • The export from the start of the lesson ran at noon: cron started it at 9:00 UTC, and TZ=Europe/Moscow wrote that time down in Moscow time.
Ubuntu 24.04
Loading…