101.3 Change runlevels / boot targets Flashcards

(42 cards)

1
Q

O que é um runlevel?

A

Estado operacional do sistema que define quais serviços são iniciados.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Quais sistemas utilizam runlevels clássicos?

A

Sistemas baseados em SysVinit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Quais são os runlevels tradicionais do SysVinit?

A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

O que representa o runlevel 0?

A

Desligamento do sistema.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

O que representa o runlevel 1?

A

Modo single user ou manutenção.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

O que representa o runlevel 3?

A

Modo multiusuário sem interface gráfica.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

O que representa o runlevel 5?

A

Modo multiusuário com interface gráfica.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

O que representa o runlevel 6?

A

Reinicialização do sistema.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Qual runlevel geralmente não é utilizado?

A

Runlevel 4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Onde os scripts de inicialização SysVinit ficam armazenados?

A

/etc/init.d.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Onde ficam os links de runlevels SysVinit?

A

/etc/rc.d ou /etc/rc*.d.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

O que significa a letra S nos scripts de rc?

A

Script executado durante a entrada no runlevel.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

O que significa a letra K nos scripts de rc?

A

Script executado durante a saída do runlevel.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Qual comando mostra o runlevel atual?

A

runlevel.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Qual comando altera o runlevel temporariamente?

A

telinit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Qual comando também pode ser usado para trocar runlevels?

A

init.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

O que substituiu os runlevels no systemd?

18
Q

O que é um target no systemd?

A

Conjunto de unidades que define um estado do sistema.

19
Q

Qual target equivale ao runlevel 3?

A

multi-user.target.

20
Q

Qual target equivale ao runlevel 5?

A

graphical.target.

21
Q

Qual target equivale ao runlevel 1?

A

rescue.target.

22
Q

Qual target equivale ao runlevel 0?

A

poweroff.target.

23
Q

Qual target equivale ao runlevel 6?

A

reboot.target.

24
Q

Qual comando mostra o target atual?

A

systemctl get-default.

25
Qual comando define o target padrão?
systemctl set-default.
26
Como trocar o target em tempo de execução?
systemctl isolate.
27
Exemplo de comando para trocar para modo texto?
systemctl isolate multi-user.target.
28
Exemplo de comando para trocar para modo gráfico?
systemctl isolate graphical.target.
29
Onde o systemd armazena o target padrão?
Em um link simbólico para default.target.
30
Onde fica o arquivo default.target?
/etc/systemd/system/default.target.
31
O que é rescue.target?
Modo de recuperação com poucos serviços.
32
O que é emergency.target?
Modo mínimo com root shell e sem serviços.
33
Qual a diferença entre rescue e emergency?
Emergency não monta filesystem e não inicia serviços.
34
O LPIC-1 exige conhecimento de SysVinit?
Sim
35
O LPIC-1 exige conhecimento de systemd?
Sim
36
O comando shutdown muda o runlevel?
Sim
37
Como reiniciar usando systemd?
systemctl reboot.
38
Como desligar usando systemd?
systemctl poweroff.
39
Qual comando lista todos os targets disponíveis?
systemctl list-unit-files --type=target.
40
Qual comando mostra dependências de um target?
systemctl list-dependencies.
41
Por que entender runlevels e targets é importante?
Para controle de inicialização
42
Esse tópico cai de forma prática na prova?
Sim