Walker News

How To Tell Or Check Linux Current Active Runlevel?

RedHat Linux (RHEL) allows user to change runlevel after system boots up. Therefore, simply examine the /etc/inittab configuration cannot tell you the current active runlevel precisely.

If you want to get firm answer, just execute runlevel to check or display both previous and current runlevel:
[walker@localhost] /sbin/runlevel
N 3

In the example (above), N is printed if there is no previous runlevel activated (i.e. no change of runlevel after system boot-up) and 3 denote the current runlevel.

Custom Search

2014  •  Privacy Policy