RUNLEVEL - Online Linux Manual PageSection : 8
Updated :
Source : systemd 253
Note : runlevel

NAMErunlevel − Print previous and current SysV runlevel

SYNOPSISrunlevel [options...]

OVERVIEW"Runlevels" are an obsolete way to start and stop groups of services used in SysV init​. systemd provides a compatibility layer that maps runlevels to targets, and associated binaries like runlevel​. Nevertheless, only one runlevel can be "active" at a given time, while systemd can activate multiple targets concurrently, so the mapping to runlevels is confusing and only approximate​. Runlevels should not be used in new code, and are mostly useful as a shorthand way to refer the matching systemd targets in kernel boot parameters​. .it 1 an-trap
Table ​1. ​Mapping between runlevels and systemd targets Runlevel Target 0 poweroff​.target 1 rescue​.target 2, 3, 4 multi−user​.target 5 graphical​.target 6 reboot​.target

DESCRIPTIONrunlevel prints the previous and current SysV runlevel if they are known​. The two runlevel characters are separated by a single space character​. If a runlevel cannot be determined, N is printed instead​. If neither can be determined, the word "unknown" is printed​. Unless overridden in the environment, this will check the utmp database for recent runlevel changes​.

OPTIONSThe following option is understood: −−help Print a short help text and exit​.

EXIT STATUSIf one or both runlevels could be determined, 0 is returned, a non−zero failure code otherwise​.

ENVIRONMENT$RUNLEVEL If $RUNLEVEL is set, runlevel will print this value as current runlevel and ignore utmp​. $PREVLEVEL If $PREVLEVEL is set, runlevel will print this value as previous runlevel and ignore utmp​.

FILES/run/utmp The utmp database runlevel reads the previous and current runlevel from​.

SEE ALSOsystemd(1), systemd.target(5), systemctl(1)
0
Johanes Gumabo
Data Size   :   9,391 byte
man-runlevel.8Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 203,856
Visitor ID   :     :  
Visitor IP   :   18.227.134.165   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|runlevel.8|32|it|.it 1 an-trap )