runlevel – Prints the Current Runlevel of the Linux System

The runlevel command is used to print the current runlevel of a Linux system. A runlevel is a mode of operation in which the system runs, and each runlevel has a specific set of services and processes that are started or stopped. The runlevel of a Linux system can be changed using the init command or by using a systemd target.


The runlevel command is used to display the current runlevel of a Linux system. To use the runlevel command, simply open a terminal and type the following command:


The output of the command will display the current runlevel of the system. For example, if the output is N 5, it means that the current runlevel is 5.

The runlevel command is particularly useful when troubleshooting system issues, as it can help identify which runlevel the system is currently in. For example, if a system is not starting up properly, knowing the current runlevel can help identify which services or processes are failing to start.


The runlevel command does not have any options.

Troubleshooting Tips

If the runlevel command does not display any output, it may be because the init process is not running. In this case, try restarting the system and running the runlevel command again.

If the output of the runlevel command is not what you expected, it may be because the system is running in a different runlevel than you anticipated. Check the system documentation to determine which runlevels are available and what services and processes are started or stopped in each runlevel.


The runlevel command is only available on systems that use the init process. On systems that use systemd, the systemctl command can be used to display the current system state.