systemctl-is-system-running
Check the current state of the system. tldr-pages
On Linux
Linux
Check whether the system is operational and print the current state
systemctl is-system-runningIdentifyCheck and print the current state quietly (no output, only exit status)
systemctl is-system-running --quietIdentifyWait until the boot process is completed before printing the current state
systemctl is-system-running --waitIdentify