📄 runlevel.8
字号:
.TH RUNLEVEL 8 "May 27, 1997" "" "Linux System Administrator's Manual".SH NAMErunlevel -- find the current and previous system runlevel..SH SYNOPSIS.B runlevel .RI [ utmp ].SH DESCRIPTION.B Runlevelreads the system.I utmpfile (typically .IR /var/run/utmp )to locate the runlevel record, and thenprints the previous and current system runlevel on its standard output, separated by a single space. If there is no previous systemrunlevel, the letter \fBN\fP will be printed instead..PPIf no.I utmpfile exists, or if no runlevel record can be found,.B runlevelprints the word \fBunknown\fP and exits with an error..PP.B Runlevelcan be used in \fIrc\fP scripts as a substitute for the System-V\fBwho -r\fP command. However, in newer versions of \fBinit\fP(8) this informationis also available in the environment variables \fBRUNLEVEL\fP and\fBPREVLEVEL\fP..SH OPTIONS.\"{{{ utmp.IP \fIutmp\fP The name of the \fIutmp\fP file to read..\"}}}.SH SEE ALSO.BR init (8),.BR utmp (5).SH AUTHORMiquel van Smoorenburg, miquels@cistron.nl
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -