Linux-Pro Chapter 2,3,4,5,13-test one
Which of the following desktops was the default for Ubuntu until 2017?
Unity
Which of the following commands shows the value of the LANG environmental variable currently set for the language the operating system uses?
echo $LANG
You need to find all files in the /home/gshant directory that are larger than 300k. You can change your directory to /home/gshant.
find -size +300k
Which of the following commands finds files with the .txt extension in the /home/gshantdirectory?
find /home/gshant -name '*txt'
You are wokring 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
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 a the command prompt to write the changes to the grub.cfg file?
grub2-mkconfig -o /boot/grub2/grub.cfg
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 an open-source application programming interface (API) that's used for creating, monitoring, migrating, starting and stopping virtual machines?
libvirt
Your Linux system was installed for you while you were living in the United States of America. You have since been transferred to satellite office located in Wood Walton, England, and have taken your computer with you. Since England uses the larger A4 paper size, you would like to change the LC_PAPER locale environment variable.
localectl
Fred, a Linux administrator, needs to create the directory /var/oracle/database/9i. Only the directory /var currently exists. The current working directory in the root of the filesystem. Which of the following commands will create the directory path?
mkdir -p /var/pracle/database/9i
You are working on a Linux distribution that uses systemmd. 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
Which of the following commands will change the /home/pmallory/reportsfile's name to reports.bak?
mv /home/pmallory/reports //home/pmallory/reports.bak
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.
shutdown -f
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 sen a message to users to give them fifteen minutes to save data and exit the system.
shutdown -h +15 It is time for a shutdown!
You need to shut down the system immediately and send a message to logged in users to allow running processes to close gracefully.
shutdown -h now
Which of the following commands will display each line in a text file in alphabetic order?
sort
Which of the following partitions functions as virtual memory for a Linux system?
swap
You are working on a systemd-based Linux distribution. Which command can you use to manage the service and targets?
systemctl
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 will be used.
systemctl enable bluetooth.service
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 is configured to boot to the multi-user.target unit, just as all your other servers are. This system is running systemd
systemctl get-default
Your system is currently running the multi-user.target. What would you enter at 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
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 task?
systemctl isolate graphical.target
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 will be used.
systemctl isolate graphical.target
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.
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.
systemctl isolate rescue.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?
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 is 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
Which of the following is responsible for bringing up other units and services when boot targets are changed?
systemd
At the command prompt, how would you enter a command that will print the line count, word count, and byte count respectively in the /home/gshant/serverpath file?
wc -lwc /home/gshant/servepath
Which of the following commands searches man pages for a specific keyword (Select Three.)
whatis man -k apropos
Which of the following vi key combinations should you press while in Insert Mode to save the file you are working on and quit?
<Esc>:wq
Lynda, a network administrator, has been tasked with connecting the VMs on multiple virtual machine hosts in a way that doesn't expose the VMs to the external network.
An overlay network
When using templates to deploy virtual machines, one challenge is that all VMs will have the same settings, such as hostname, security identifies, and even the same IP address.
Bootstrapping
Which of the following is the standard shell for MOST Linux computers?
Bourne-again shell (bash)
Which of the following desktops was derived from GNOME 3, follows traditional desktops metaphor conventions, and is the primary desktop environment for the Mint distribution?
Cinnamon
Which of the following is a function of a virtual network switch?
Connects the VMs virtual NIC and the host's physical NIC.
Which of the following templates, which use the JSON file format, can be copied and used to create multiple containers, that run the same applications?
Container Image
Anaconda is an installation program that's used by Fedora, RHEL, and other distributions. Which of the following does Anaconda perform? (After Anaconda's installation what does it create.)
Creates a file system.
When implementing a network gateway, implementing a firewall, or increasing performance, multiple NICs can be added to a computer. Which of the following can be implemented on VMs to provide this capability?
Dual-home NICs
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 boot loader?
Edit the timeout parameter in the /etc/default/grub file to say GRUB_TIMEOUT=12
You have just installed a new Linux system, which is using the Wayland system. Which of the following is VALID regarding this system?
Events captured from the keyboard are sent to the Wayland compositor and then the Wayland client, where the rendering takes place.
Which of the following desktops is the default for many Linux distributions, such as Fedora and Ubuntu?
GNOME
You are editing the /etc/default/grub file. Which option should you use to set the default operating system?
GRUB_DEFAULT=
Which values are set for the following environment variables? Type echo $variable at the prompt to answer the question. The variables are case sensitive.
HOME /root
Anaconda is an installation program that's used by Fedora, RHEL, and other distributions. Which of the following does Anaconda perform? (What does it do inside the computer)
Identifies the computer's hardware.
Which of the following desktops emulates a Windows desktop, especially in the location of the menu options and bottom panel bar?
KDE
Which of the following are popular Linux desktops? KDE CINNAMON GNOME SPICE Unity KNOPPIX Mate NX Grub
KDE Cinnamon GNOME Unity Mate
Which of the following can be used to script Anaconda and provide unattended installations using a single file?
Kickstart
Match the locale environmental variable name on the left with the description on the right. Defines very locale setting at once while allowing futher individual customization via the LC_*settings.
LANG
Which values are set for the following environment variables? Type echo $variable at the prompt to answer the question. The variables are case sensitive.
LANG en_US.UTF-8
You are trying to pipe data from the cat command to another program, but the data output does not make sense. You believe that the system's locale is corrupting the output. To test your hypothesis, you decide to change a locale environment variable.
LANG=C
Match the locale environmental variable name on the left with the description on the right. Specifically used an override for LC_MESSAGES
LANGUAGE
Match the locale environmental variable name on the left with the description on the right. A special variable for overriding every other environment setting. It sets all locales to the same setting.
LC_ALL
Which environment variable overriding all other settings. It sets all locales
LC_ALL
Match the locale environmental variable name on the left with the description on the right. Specifies personal name format.
LC_NAME
Which of the following desktops were started by an Arch Linux user in response to the negative reception of GNOME 3 and continue to follow the GNOME 2 code base?
MATE
Linux-based hypervisors, such as a Xen, KVM, and QEMU, provide a software-based virtual network switch. Which of the following is an additonal feature provided by a Linux bridge?
NAT
Which of the following Linux bridge modes is the default?
NAT
Which remote desktop technology offers access from most common platforms such as Linux, Windows, Mac iOS, Android, and Rasberry?
NX
Anna, a system administrator, created a new virtual machine that she would like to provision on additional hyper visors. Which of the following will provide a VM template that is open and can be used by hyper visors from different venders?
OVF
Which values are set for the following environment variables? Type echo $variable at the prompt to answer the question. The variables are case sensitive.
TERM linux
Which of the following BEST describes the role of the Linux desktop
The Linux desktop adds a series of tools and utilities to make the GUI useful.
The mydata file is a symbolic link to the shantsgems file.
The ls command in the current working directory gives the following listing: lrwxrwxrwx 1 root root 4 2010-11-05 mydata -> shantsgems -rwxr -xr -x 1 root root 382 2010-0-05 shantsgems
Your company is deploying ten new virtual machines. You have planned the disks pace for anticipated future growth. However, the hypervisor currently doesn't have enough disk space for the all disks that need to be allocated. You have placed an order for additional storage that will be added to the hypervisor. You must have all ten servers operational before your order will arrive. You determine that overbooking the storage space will work in the short term. Which of the following storage provisioning options should be selected?
Thin Provisioning
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
All users at your site are using the bash shell. You want to set a variable that will apply to every user and always have the same value. Which of the following shell configuration files should you place this variable in? .bash_profile .bashrc .bash_login /etc/profile
/etc/profile
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
You are in the process of manually creating the partitions during a Linux installation. Knowing that users will often require a lot of space to store their files, which of the following directories (or mount points) SHOULD be configured on its own partition?
/home
For which of the following directories should you create separate partitions?
/var
If not cleared out, log files can eventually consume a large amount of data, sometimes filling a drive to its capacity. If the log files are on the same partition as the operating system, this could potentially bring down a Linux computer.
/var
What is the full path to the directory that contains data files that change constantly, including email, print jobs, and proxy cache files?
/var
For which of the following directories should you create separate partitions?
-1 /home -2/var
During installation, you need to make sure there is plenty of hard disk space allocated to the partition that is going that is going to hold the entire Linux operating system.
/
Drag the GRUB 2 file or directory on the left to the correct description on the right. The GRUB 2 configuration file (non-editable).
/boot/grub2/grub.cfg
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?
/etc/default/grub
The GRUB 2 configuration file (editable).
/etc/default/grub/
The GRUB2 directory for script files.
/etc/grub.d/
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?
/etc/grub.d/40_custom
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
Which of the following describe an OVA (open virtual appliance or application) file?
Provides a single file that archives all the files that make up an OVF using TAR.
Anaconda is an installation program that's used by Fedora, RHEL, and other distributions. Which of the following does Anaconda perform? (Upon installation what are provided?)
Provides a user interface with guided installation steps.
Which values are set for the following environment variables? Type echo $variable at the prompt to answer the question. The variables are case sensitive.
SHELL /bin/bash
Which of the following provides a complete open-source solution for remove access to virtual machines?
SPICE
Which of the following systemd unit-specfic sections describes how to manage services or appllcations on the server?
Service
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 preform troubleshooting tasks and get the system running normally again. What should you do before your reboot?
Set the default boot target to rescue.target.
PATH
View the contents of the /root/.bash_profile. Type cat /root/.bash_profile at the prompt to answer the question. What is the last word in the file?
Which component of the X11 Window System controls the placement and appearance of windows on a Linux computer?
Window Manager
Which of the following are an example of a Linux display server?
X11 KDE
Which X11 Window System element is the MAIN system component?
X11 Server
Your company has implemented both Linux and Window servers. The system administrators use Windows desktops, so they have access to Windows administration tools. They routinely access the Windows servers using Windows Remote Desktop
XRDP
Mary, a system administrator, would like to deploy virtual machines, storage, and networiking in a cloud environment. Which of the following file formats would allow Mary to modularized these items as template.
YAML JSON
Which of the following commands creates a shortcut that can be used to run the fail -f /var/log/messages?
alias sysmesg="tail -f /var/log/messages"
Which of the following commands sorts the combine contents of the wordlist1 and wordlist2 files and send the results to both the screen and a file named sortedwordlist?
cat / usr /wordlist1 / usr / wordlist2 | sort | tee sortedwordlist
A Linux administrator is logged in as root and needs to copy a file name letter.doc from the USB flash drive mounted under /media/usb.?
cp /media/usb/letter.doc /root
