Skip to content

systemd and services

Starting, stopping and monitoring services, reading their logs, running jobs on a schedule, and restarting or shutting down the server cleanly.

Basics: Units, unit files and their states

Manage services

  • systemctl


    Start, stop, enable and check services.

Logs and analysis

Run commands

System settings

  • hostnamectl


    Show system information and set the host name. Covered in the chapter Orientation.

  • timedatectl


    Show and set time zone and time synchronization. Covered in the chapter Orientation.

  • localectl


    Show and set system language and keyboard layout.

  • systemd-tmpfiles


    Create and clean up runtime and temporary files.

Sessions and power

  • loginctl


    Show and end login sessions.

  • shutdown


    Shut down or reboot, now or at a set time.

  • reboot


    Restart the system right away.