TestOUT Pro Linux Chapter 4

Ace your homework & exams now with Quizwiz!

Which directory contains the configuration file for GRUB 2?

/boot/grub2/

You have informed users that you need to bring the machine down at the end of the day to perform routine maintenance. However, prior to shutting the system down, you want to send a message to users to give them fifteen minutes to save data and exit the system. Which of the following is the BEST command to use?

shutdown -h +15 It is time for a shutdown!

Your system is currently running the multi-user.target. You want to enable bluetooth.service to run when graphical.target is loaded. There are two commands you must enter from a command prompt to accomplish this task. Drag the commands on the left to the appropriate step number on the right. Not all of the commands on the left will be used.

systemctl isolate graphical.target systemctl enable bluetooth.service

You are experiencing a problem with a network server. You want to bring the system down and try reseating the cards within it before restarting it. Which command runs poweroff.target to shut down the system in an orderly manner?

systemctl isolate poweroff.target

You need to perform some system maintenance on a systemd system, and you want to prevent users from logging on while you do so. Which command should you run?

systemctl isolate rescue.target

4.2.9

4.2.9

4.3.7

4.3.7

4.4.410

4.4.10

4.5.8

4.5.8

Which system component verifies the hardware and passes control of the computer to the boot loader?

BIOS

What is the correct order for the boot phases of a Linux computer?

BIOS, Boot loader, OS Kernel, Init

You have a dual-boot system with a Linux and Windows operating systems. You need to configure the GRUB 2 bootloader to display the menu for 12 seconds before it automatically boots the default operating system. Which of the following is the BEST first step to configure the bootloader?

Edit the timeout parameter in the /etc/default/grub file to say GRUB_TIMEOUT=12

You are editing the /etc/default/grub file. Which option should you use to set the default operating system?

GRUB_DEFAULT=

In which boot process stage is the root partition mounted?

OS kernel

Which component is responsible for loading and executing the initial process?

OS kernel

If an attacker boots into single user mode, they are logged in automatically as the root user without being required to enter the root password. Which of the following is the BEST measure should you take to prevent this event from happening?

Set a bootloader password.

Which of the following has a process ID (PID) of 1?

The initial process

You have a system with more than one Linux operating system installed. During the system's bootup process, which component loads a splash screen, allowing you to choose which operating system you want to run?

The secondary boot loader

You are working on a Linux distribution that uses systemd. Which file in the /usr/lib/systemd/system/ directory is text-based and used to start the services that support multiple users and support networking?

multi-user.target

You have just finished installing an updated kernel on your email server that has been patched to solve a security vulnerability and wish to reboot as soon as possible. This is a busy time of day, and you do not want the server down any longer than necessary. Which option prevents fsck from running after the reboot and allows the system to boot faster?

shutdown -f

You need to shut down the system immediately and send a message to logged in users to allow running processes to close gracefully. Which of the following is the BEST to use?

shutdown -h now

You are working on a systemd-based Linux distribution. Which command can you use to manage the services and targets?

systemctl

Your system is currently running the multi-user.target. What would you enter at the command prompt to find out whether the atd.service is configured to start every time the multi-user.target is loaded?

systemctl is-enabled atd.service

After updating the settings in the /etc/default/grub file, you know the changes must be written to the grub.cfg file before they will be used. What would you enter at the command prompt to write the changes to the grub.cfg file?

update-grub

If a systemd system is configured to use multi-user.target as the default boot target, which file has a symbolic link (symlink) to the multi-user.target file?

/etc/systemd/system/default.target

What is the full path and filename of the GRUB 2 file that is used for editing the default behavior of the bootloader menu?

/etc/default/grub

You have GRUB2 installed on your Linux workstation. You need to make changes to the boot menu. Which files and scripts can you edit to modify the menu entries and behavior of the boot menu? (Select TWO.)

/etc/grub.d/40_custom /etc/default/grub

Anna, a system administrator, wants to prevent users from pressing the Ctrl+Alt+Delete key combination to reboot the server. Which configuration file should be modified to change this setting?

/etc/inittab

Which of the following systemd unit-specific sections describes how to manage services or applications on the server?

Service

Which of the following will prevent a user from booting a computer, booting from removable devices, and changing UEFI/BIOS settings?

Set a UEFI/BIOS password.

You have a systemd Linux system that is configured to boot into the graphical.target by default. The system seems to be running much slower than normal. You need to reboot the system, but you want it to boot into a single-user target unit with no network access so you can perform troubleshooting tasks and get the system running normally again. What should you do before you reboot?

Set the default boot target torescue.target

Drag the GRUB 2 file or directory on the left to the correct description on the right.

The GRUB2 Configuration file (non-editable): /boot/grub2/grub.cfg The GRUB2 directory for script files: /etc/grub.d The GRUB2 configuration file (editable): /etc/default/grub The script that identifies kernels on the root device and creates menu entries: 10_linux The script file that allows menu entries to be modified: 40_custom

You are working on a Linux distribution that uses systemd. Which non-symlink file in the /usr/lib/systemd/system/ directory is used to start the services necessary for multiple users, networking, and a graphical display?

graphical.target

Which of the following commands will help you to determine which version of GRUB is installed on your Linux system?

grub2-install --version grub-install -v

You are experiencing a problem with a SysV init network server. You want to bring the system down and try reseating the cards within it before restarting it. Which command completely shuts down the system in an orderly manner?

init 0

Which of the following is responsible for bringing up other units and services when boot targets are changed?

systemd

You are experiencing a problem with one particular server. Each time it boots, it goes into single-user mode even though no warnings or errors are reported. You want to verify that it is configured to boot to the multi-user.target unit, just as all your other servers are. This system is running systemd. Which command would you use to see which boot target is set as the default?

systemctl get-default

You are on a systemd system. Without rebooting the system, you want to change from the currently running target unit to a target that supports networking, supports multiple users, and displays a graphical interface. What command should you enter to accomplish this tak?

systemctl isolate graphical.target

After making changes to the configuration of anaconda.service, you must make those changes take effect. Which single command should you enter to make this service use the new configuration?(Note that there is no reload option with this service.)

systemctl restart anaconda.service

After making changes to the configuration of the anaconda.service, you must make those changes take effect. Which single command do you enter to make this service use the new configuration? (Note: There is no reload option with this service.)

systemctl restart anaconda.service

The current default boot target is a multi-user.target, but you want to use this system as a desktop workstation. You need a boot target that supports multiple users, supports networking, and has a graphical display. This is a systemd system. What command should you enter to change the default boot target to one that meets these needs?

systemctl set-default graphical.target

After getting calls about users not being able to print, you check the status of cups.service and find that it is not running. What would you enter at the command prompt to run cups.service?

systemctl start cups.service

What would you enter at the command prompt to find out whether cups.service is running?

systemctl status cups.service

What is the core process for a systemd-based Linux system?

systemd


Related study sets

FIN 303 - Chapter 4: Analyzing Financial Statements

View Set

Trigonometry - Solving Trig Equations

View Set

REAL 4000 Test 3 LCPQ (calc only)

View Set

Word formed by shortening - English Language.

View Set