*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> runlevel (8)              
Title
Content
Arch
Section
 

RUNLEVEL(8)

Contents


NAME    [Toc]    [Back]

       runlevel -- find the current and previous system runlevel.

SYNOPSIS    [Toc]    [Back]

       runlevel [utmp]

DESCRIPTION    [Toc]    [Back]

       Runlevel reads the system utmp file (typically /var/run/utmp) to locate
       the runlevel record, and then prints the previous  and  current	system
       runlevel  on its standard output, separated by a single space. If there
       is no previous system runlevel, the letter N will be printed instead.

       If no utmp file exists, or if no runlevel record can be found, runlevel
       prints the word unknown and exits with an error.

       Runlevel can be used in rc scripts as a substitute for the System-V who
       -r command.  However, in newer versions of init(8) this information  is
       also available in the environment variables RUNLEVEL and PREVLEVEL.

OPTIONS    [Toc]    [Back]

       utmp   The name of the utmp file to read.

SEE ALSO    [Toc]    [Back]

      
      
       init(8), utmp(5)

AUTHOR    [Toc]    [Back]

       Miquel van Smoorenburg, miquels@cistron.nl



				 May 27, 1997			   RUNLEVEL(8)
[ Back ]
 Similar pages
Name OS Title
ttyslot IRIX find the slot in the utmp file of the current user
prev Tru64 show the previous message (only available within the message handling system, mh)
ttyslot Tru64 Find the slot for the current user in the user accounting database
findanicon IRIX find an icon on the system (File QuickFind)
unget Tru64 Cancels a previous get command
last Tru64 Displays information about previous logins
unget HP-UX undo a previous get of an SCCS file
glflushrastersgix IRIX complete rasterization of previous GL commands
backq Tru64 STREAMS: Gets a pointer to the previous queue
unget IRIX undo a previous get of an SCCS file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service