runlevel

Category: Administration

runlevel

Print the current and previous runlevel

Shows the previous and current runlevel, for example N 5, where N means the system booted directly into 5. On systemd systems the command maps the active target to its traditional runlevel number. Mostly useful for scripts that must behave like SysV init.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.