Linux Find Out Current Run Level Command
Type the following command:
$ who -r
OR
$runlevel
# Default runlevel. The runlevels used by RHS are: # 0 - halt (Do NOT set initdefault to this) # 1 - Single user mode # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) # 3 - Full multiuser mode # 4 - unused # 5 - X11 # 6 - reboot (Do NOT set initdefault to this)
To change the default run level,
Step-1 edit /etc/inittab file, and edit entry initdefault:
Step-2 init 6
🙂