terminal.cab

All commands

systemctl

Topic: System and services

Program: systemctl

Shows and controls services (start, stop, enable).

Package: systemd

Usage

systemctl [OPTION]... COMMAND [UNIT]...

Description

Show and control the services of the system. Commands: status, start, stop, restart, reload, enable, disable (enable --now also starts), is-active, is-enabled, is-failed, list-units, list-unit-files. Options: -t service, -a (also inactive units), --failed, --no-legend, -l (do not cut long lines), -q, --version.

Options in the simulator

61 more options of the real program, not in the simulator yet
  • --version not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --system not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --user not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • -C, --capsule needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • -H, --host needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • -M, --machine needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • -t, --type needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --state needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --failed not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • -p, --property needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • -P needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • -a, --all not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • -l, --full not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • -r, --recursive not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --reverse not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --before not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --after not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --with-dependencies not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --job-mode needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • -T, --show-transaction not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --show-types not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --check-inhibitors needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • -i not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --kill-whom needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --kill-value needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • -s, --signal needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --what needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --now not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --dry-run not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • -q, --quiet not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --no-warn not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --wait not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --no-block not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --no-wall not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --message needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --no-reload not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --legend needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --no-pager not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --no-ask-password not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --global not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --runtime not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • -f, --force not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --preset-mode needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --root needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --image needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --image-policy needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • -n, --lines needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • -o, --output needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --firmware-setup not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --boot-loader-menu needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --boot-loader-entry needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --reboot-argument needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --plain not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --timestamp needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --read-only not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --mkdir not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --marked not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --drop-in needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --when needs a value not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

  • --stdin not in the simulator yet

    The option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.

Examples

From the lesson Services with systemctl
systemctl status app
● app.service - Shop API
     Loaded: loaded (/etc/systemd/system/app.service; enabled; preset: enabled)
     Active: active (running) since Sat 2026-10-17 06:01:00 UTC; 3h 41min ago
 Invocation: e210961b058d8fb2a7c4efe1121e35a0
   Main PID: 2114 (python3)
      Tasks: 1 (limit: 9387)
     Memory: 96M (peak: 96M)
        CPU: 0
     CGroup: /system.slice/app.service
             └─2114 python3 app.py

Oct 17 06:01:00 web-01 systemd[1]: Starting app.service - Shop API...
Oct 17 06:01:00 web-01 systemd[1]: Started app.service - Shop API.
systemctl is-active app
active
systemctl is-active backup
inactive

Try it in the terminal

Where you learn it

Lessons

All commands