- trixie 3.14-4
- testing 3.14-4
- unstable 3.14-4
- experimental 3.15-2
RUNLEVEL(8) | Manual de Administrador de Sistema Linux | RUNLEVEL(8) |
NOME¶
runlevel - encontra o runlevel anterior e actual do sistema
RESUMO¶
runlevel [utmp]
DESCRIÇÃO¶
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.
Se nenhum ficheiro utmp existir, e se nenhum registo de runlevel puder ser encontrado no ficheiro /var/run/runlevel, o runlevel escreve a palavra unknown e termina com erro.
O runlevel pode ser usado em scripts rc como substituto do comando who -r do System-V. No entanto, em versões mais recentes do init(8) esta informação está também disponível nas variáveis de ambiente RUNLEVEL e PREVLEVEL.
OPÇÕES¶
- utmp
- O nome do ficheiro utmp a ler.
VEJA TAMBÉM¶
init(8), utmp(5)
AUTOR¶
27 Maio, 1997 | sysvinit |