commands.sh

systemctl is-system-running

linux

Check the current state of the system.

More info →

Options (1)

-q, --quietboolean

Check and print the current state quietly (no output, only exit status)

Example: systemctl is-system-running {{[-q|--quiet]}}

Examples (3)

Check whether the system is operational and print the current state

Check and print the current state quietly (no output, only exit status)

Wait until the boot process is completed before printing the current state

made by @shridhargupta | data from tldr-pages