Run levels Boot Targets ans shutdown/ reboot the system Flashcards

1
Q

What does the command runlevel do

A

View your current runlevel

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

What does the command telinit do

A

change to another runlevel

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

How to do you change the runlevels at boot

A

interrupt the GRUB boot process by pressing any key during startup, then at the GRUB selection menu, highlight a kernel to modify, press the a key to add arguments to the end of a kernel line, enter in a runlevel number

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

What is a systemd target

A

A target is a unit that syncs up other units when the computer boots or change states

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

What does the command systemctl list-unit-files -t target

A

Show all unit files for available targets

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

what does the command systemctl list-units- -t target do

A

Show all loaded and active unit files

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

systemctl get-default

A

List out the default target

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

what does the command systemctl set-default do

A

Change the default target to a different target

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

What does the command systemctl isolate

A

Will change the running state of the system from the current target to a different target

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

What does the command systemctl rescue do

A

Almost identical to the system v init single-user mode, allows the root user to repair a system

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

What does the command systemctl reboot do

A

Will run the reboot.target Same thing as just typing reboot at the prompt

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

What does the command systemctl poweroff do

A

Will perform a complete shutdown of the system by isolating the system to the poweroff.target. Same thing as just typing poweroff at the prompt

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

What are all of the reboot commands

A

reboot
telinit 6
shutdown -r now
systemctl isolate reboot.target

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

What does the wall command do

A

broadcasts a message to all logged in users (after message is typed, terminate the message with a CTRL+D

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

What are all of the shutdown commands

A

poweroff
telinit 0
shutdown -h +1
system isolate poweroff.target

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

What does the command acpid do

A

Advanced config an power interface, registers system events (such as pressing the power button or closing laptop lid)