The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

runlevel - Report Current Runlevel





The runlevel command is used to display the current runlevel of a Linux system. Runlevels represent different states or modes in which the system can operate, and they determine which services and processes are started or stopped when the system boots up.

When you run this command, it typically displays two values separated by a space, representing the previous and current runlevels. For example:
$ runlevel
N 5

Here, "N" is the previous runlevel, and "5" is the current runlevel. Runlevels can vary depending on the Linux distribution, but some of the most common runlevels include:

For more details, please refer to the provided link.