Finding the current runlevel of linux

To find the current runlevel of the system we can use the following commands

$ who -r run-level 2 2012-08-28 19:43 last= The output indicates that the current runlevel is “2” , followed by the date and the time. If there was any other runlevel used before it would be listed after “last=”. The second command that can be used is $ runlevel N 2 The second number is the current runlevel. The first number is the previous runlevel.

Tags: ,
Copyright 2017. All rights reserved.

Posted August 28, 2012 by Tux Think in category "Linux