Questions
- What is the command for rebooting a Linux machine?
a)
sudo shutdown now
b)
sudo systemctl -r now
c)
sudo systemctl reboot now
d)
sudo systemctl reboot
e)
sudo shutdown --reboot
- What happens 5 minutes before a scheduled shutdown time?
a) The
scheduled
file gets created in the/run/systemd/shutdown/
directory.b) The
scheduled
file gets created in the/run/
directory.c) The
nologin
file gets created in the/run/systemd/shutdown/
directory.d) The
nologin
file gets created in the/run/
directory. - When you schedule a future shutdown, which of the following happens?
a) A
nologin
file gets created in the/run/systemd/shutdown/
directory.b) A
scheduled
file gets created in the/run/systemd/shutdown/
directory.c) A
nologin
file gets created in the/run/systemd/
directory.d) A
scheduled
file gets created in the/run/
directory. - What could happen if you do a
sudo systemctl poweroff --force --force
command?a) Using the
--force
option twice would result in an error message.b...