135 Linux-Pro Chapter 2 to 9 & 13
Before you install an RPM package, you want to verify the authenticity of the package and check the digital signature to ensure that it has not been altered. Which rpm option should you use?
--checksig
For which of the following directories should you create separate partitions?
-1 /home -2/var
Which dpkg option completely removes a package and its configurations files?
-P
Which of the following dpkg options will install a package recursively?
-R
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 /etc/grub.d/40_custom
What is the full path and filename for the DNF configuration file?
/etc/dnf/dnf.conf
What is the full path and file name for the file that contains a colon-, space-, tab-, newline-, or comma-delimited list of directories in which to search for libraries?
/etc/ld.so.conf
What is the full path and file name for the YUM configuration file?
/etc/yum.conf
When managing DNF, what is the full path to the directory where you should place .repo files?
/etc/yum.repos.d/
When managing YUM, what is the full path to the directory where you should place .repo files?
/etc/yum.repos.d/
Which of the following directories typically hold the dynamic libraries on your system? (Select TWO).
/usr/lib/ /usr/local/lib/
Match the term on the left with its characteristic on the right. (Each term can be used more than once.) Dynamic Library Static Library
1) Has a .so or .so.version extension. Dynamic Library 2) Increases the size of the application. Static Library 3) Has an .a filename extension. Static Library 4) Is typically stored in /usr/lib/ and /usr/local/lib/. Dynamic Library 5) Can degrade program load time if the library is already in use by another program. Dynamic Library
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?
1- /etc/default/grub 2- /etc/grub.d/40_custom
Which of the following actions does the dpkg -l (lowercase L) command perform?
All packages with names that match a specified pattern are displayed
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
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
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.
You have found a patch for the Samba server on your system. The patch is a .rpm package. Which of the following procedures is the MOST correct for installing the package?
Download the package. Run rpm -Uvh on the package to install the update.
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
Which of the following desktops is the default for many Linux distributions, such as Fedora and Ubuntu?
GNOME
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.
You need the DNF utility to check specific URLs for RPM repositories. Which of the following locations should you add the URLs to?
In .repo files within the /etc/yum.repos.d/ directory
Which of the following situations is most likely to cause a dependency problem?
Installing two different packages that both include /usr/lib/graphlib
Which environment variable overriding all other settings. It sets all locales
LC_ALL
Which environment variable specifies additional directories to search for library files not listed in /etc/ld.so.conf?
LD_LIBRARY_PATH
Which of the following methods should you use to configure dynamic libraries on a Linux system? (Select TWO).
Modify /etc/ld.so.conf to add the path of the libraries. Use the LD_LIBRARY_PATH environment variable to specify additional directories to search for library files.
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 remote desktop technology offers access from most common platforms such as Linux, Windows, Mac iOS, Android, and Rasberry?
NX
in which phase is the root partition mounted?
OS Kernel
what is responsible for loading and executing the initial process?
OS Kernel
Which of the following functions does the -d option perform when using the apt-get command to install a package?
Packages are downloaded to the system, but not installed.
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 of the following functions does the dpkg --configure command perform?
Reconfigures an unpacked package
You obtain your applications and updates in RPM format. Which of the following distributions is your system based on?
Red Hat
You have previously installed the package mplayer and wish to remove it from your computer. Which of the following removal methods should you use?
Run the command rpm -e mplayer.
Which of the following provides a complete open-source solution for remove access to virtual machines?
SPICE
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.
Which of the following functions does the rpm -V command perform?
Verifies that an RPM package is free from errors.
Which component of the X11 Window System controls the placement and appearance of windows on a Linux computer?
Window Manager
Which X11 Window System element is the MAIN system component?
X11 Server
You are working on a Debian distribution of Linux. You want to retrieve information about the Debian package database on the system. Without using any command options, what command will provide the information you need?
apt-cache
You are working on a Debian distribution of Linux. You need to install a package, but you do not want to manually install all the dependencies for the package. Without using any command options, what command should you use?
apt-get
Which of the following statements correctly describe the differences between the "apt-get remove" and "apt-get purge" commands? (Select TWO).
apt-get purge - removes the package and the configuration files. apt-get remove - removes a specified package, but leaves the configuration files.
You have installed a package called mathpac with apt-get. After a system upgrade, the package is not working correctly. Which of the following commands is the MOST correct method to get the package to work?
apt-get upgrade mathpac
Which of the following Debian package management utilities provides the front end for APT?
aptitude
Which of the following commands can be used to combine the content of three files into a single text stream?
cat
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
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
A system administrator is configuring a package manager to access packages from a local repository and take advantage of a local repository's transfer speed. Which of the following commands can be used to pull packages from an online repository? (Select THREE).
curl wget rsync
You used DNF to list the ruby packages that are available to install. You see that there is a package available that is called ruby. What DNF command do you use to install this ruby package?
dnf install ruby
You have users who need to do some programming projects in the Ruby programming language. What DNF command do you use to find out if there is a ruby package available to install on the Linux server?
dnf list ruby
You have installed a package called mathpac with DNF. After a system upgrade, the package is not working correctly. Which of the following commands should you try first to get the package to function?
dnf update mathpac
What dpkg command would you enter at the command prompt to search for packages that have been partially installed on the system?
dpkg -C
What dpkg command would you enter at the command prompt to list information about a currently installed Debian package?
dpkg -p
Which of the following commands will reconfigure an already installed package?
dpkg-reconfigure
What would you enter at the command prompt to display a file's type?
file
You are working with the RPM package acroread-8.1.3-51.6.i586.rpm. Match the naming convention term on the left with the associated file name segment on the right.
i586 ; Architecture type 8.1.3 ; Version number acroread ; Package name 51.6 ; Release number
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 commands will display the attributes of a /boot/gub/grub.conf file?
lasttr /boot/grub/grub.conf
What would you enter at the command prompt without options to reload the library cache every time libraries are added or removed and update the symbolic links?
ldconfig
Which of the following commands reloads the libraries for the /bin/bash executable, but does not update the cache?
ldconfig -N /bin/bash
Which of the following commands should you use to change the location of the default file used to search for libraries?
ldconfig -f
What would you enter at the command prompt to display the shared library information for executables?
ldd
Which of the following commands displays all of the shared library information for the /bin/bashexecutable?
ldd -v /bin/bash
Which of the following DNF options will display whether updates are available for RPM packages?
list updates
Which of the following yum options will display whether updates are available for RPM packages?
list updates
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
A user attempts to view the contents of a directory, but the output of the ls -l command scrolls beyond the limit of one console window. Which of the following commands would allow the users to see the full listing of the directory?
ls -l | less
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 move a file from one location to another?
mv
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 are attempting to install an RPM package on your Linux system, but the system tells you that a newer package is already installed. Which of the following commands will install the RPM package over the existing installed package?
rpm --force
You are attempting to install an RPM package on your Linux system, but the system tells you the package has dependencies that are not installed. What would you enter at the command prompt to force RPM to override the need to install the dependencies?
rpm --nodeps
Without installing an RPM package, you want to check for all of the package's uninstalled dependencies. Which of the following commands should you use?
rpm --test
What command will upgrade an RPM package only if an earlier version is already installed on the system?
rpm -F
You have an RPM package called mathpac that is not working correctly. You have downloaded the latest package. Which of the following commands should you use to install the latest mathpac package?
rpm -U mathpac
You need to install the package apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm Which of the following commands will perform the installation? (Select TWO).
rpm -ih apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm & rpm -Uh apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm
Which of the following commands queries the system for all installed RPM packages?
rpm -qa
You need to determine which files are associated with the metacity RPM package. Which of the following commands should you use?
rpm -ql metacity
Which of the following utilities should you use if you need to extract a file from an RPM package file?
rpm2cpio
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
A user, ljenkins, contacts the help desk about and error received while removing a file from their home directory. The user received the following error when trying to use the rm command to remove the file:
sudo chattr -i report.txt && rm report.txt
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
what is the core process for a systemd-based Linux system?
systemd
what has the process ID (PID) of 1?
the initial process
which screen lets you choose if you have multiple OS's installed?
the secondary boot loader
Which of the following commands will change the /home/gshants/smilefile's modification and last accessed times to the current time?
touch /home/gshants/smile
Which of the following apt-cache options will show the missing dependencies in the package cache?
unment
Which of the following apt-get options will upgrade all installed packages to the latest versions using the information in /etc/apt/sources.list ?
upgrade
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
You used YUM to list the python packages that are available to install. You see that there is a package available that is called python. What YUM command do you use to install this python package?
yum install python
You have users who need to do some programming projects in the Python programming language. What yum command should you use to find out if there is a Python package available to install on the Linux server?
yum list python
You have installed a package called mathpac with yum. After a system upgrade, the package is not working correctly. Which of the following commands should you FIRST try to get the package to function?
yum update mathpac
What YUM command would you enter at the command prompt to determine which package contains the /usr/lib/libstlport_gcc.so file?
yum whatprovides /usr/lib/libstlport_gcc.so
What YUM command would you enter at the command prompt to download an RPM package without installing it to the system?
yumdownloader