How Do I See Previous Runlevels in Linux?

How Do I See Previous Runlevels in Linux?
Contents

How do I find previous runlevels?

In case of Linux systems using SysV init (RHEL/CentOS 6 and earlier releases), the command ‘runlevel’ will print previous and the current run level. The ‘who -r’ command can also be used to print the current run level. This command will display the current target for the system.

How do I find my default runlevel Ubuntu?

To change the default runlevel, use your favorite text editor on /etc/init/rc-sysinit. conf... Change this line to whichever runlevel you want… Then, at each boot, upstart will use that runlevel.

Alexander Ross
Author

Alexander Ross

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.