Chapter 2
Topic 102: Linux Installation and Package Management

THE FOLLOWING EXAM OBJECTIVES ARE COVERED IN THIS CHAPTER:

  • images  102.1 Design hard disk layout.
    • Key knowledge areas:
      • Allocate filesystems and swap space to separate partitions or disks.
      • Tailor the design to the intended use of the system.
      • Ensure the /boot partition conforms to the hardware architecture requirements for booting.
      • Knowledge of basic features of LVM
    • The following is a partial list of the used files, terms, and utilities:
      • /(root) filesystem
      • /var filesystem
      • /home filesystem
      • /boot filesystem
      • EFI System Partition (ESP)
      • swap space
      • mount points
      • partitions
  • images  102.2 Install a boot manager.
    • Key knowledge areas:
      • Provide alternative boot locations and backup boot options.
      • Install and configure a boot loader such as GRUB Legacy.
      • Perform basic configuration changes for GRUB2.
      • Interact with the boot loader.
    • The following is a partial list of the used files, terms, and utilities:
      • menu.lst, grub.cfg, and grub.conf
      • grub-install
      • grub-mkconfig
      • MBR
  • images  102.3 Manage shared libraries.
    • Key knowledge areas:
      • Identify shared libraries.
      • Identify the typical locations of system libraries.
      • Load shared libraries.
    • The following is a partial list of the used files, terms, and utilities:
      • ldd
      • ldconfig
      • /etc/ld.so.conf
      • LD_LIBRARY_PATH
  • images  102.4 Use Debian package management.
    • Key knowledge areas:
      • Install, upgrade, and uninstall Debian binary packages.
      • Find packages containing specific files or libraries which may or may not be installed.
      • Obtain package information like version, content, dependencies, package integrity, and installation status (whether or not the package is installed).
      • Awareness of apt
    • The following is a partial list of the used files, terms, and utilities:
      • /etc/apt/sources.list
      • dpkg
      • dpkg-reconfigure
      • apt-get
      • apt-cache
  • images  102.5 Use RPM and yum package management.
    • Key knowledge areas:
      • Install, re-install, upgrade, and remove packages using RPM, yum, and zypper.
      • Obtain information on RPM packages such as version, status, dependencies, integrity, and signatures.
      • Determine what files a package provides, as well as find which package a specific file comes from.
      • Awareness of dnf
    • The following is a partial list of the used files, terms, and utilities:
      • rpm
      • rpm2cpio
      • /etc/yum.conf
      • /etc/yum.repos.d/
      • yum
      • zypper
  • images  102.6 Linux as a virtualization guest
    • Key knowledge areas:
      • Understand the general concept of virtual machines and containers.
      • Understand common elements of virtual machines in an IaaS cloud, such as computing instances, block storage, and networking.
      • Understand unique properties of a Linux system that have to change when a system is cloned or used as a template.
      • Understand how system images are used to deploy virtual machines, cloud instances, and containers.
      • Understand Linux extensions that integrate Linux with a virtualization product.
      • Awareness of cloud-init
    • The following is a partial list of the used files, terms, and utilities:
      • Virtual machine
      • Linux container
      • Application container
      • Guest drivers
      • SSH host keys
      • D-Bus machine id

  1. A Serial Advanced Technology Attachment (SATA) disk will use which of the following identifiers?

    1. /dev/hdX
    2. /dev/sataX
    3. /dev/sdX
    4. /disk/sataX
  2. Which option given at boot time within the GRUB configuration will boot the system into single-user mode?

    1. single-user
    2. su
    3. single
    4. root
  3. During boot of a system with GRUB, which key can be pressed to display the GRUB menu?

    1. Shift
    2. E
    3. V
    4. H
  4. When booting, which option can be added to a GRUB configuration line to set or change the root partition at boot time to /dev/sda2?

    1. rootpartition={hd0,2}
    2. root=/dev/sda2
    3. root={hd0,3}
    4. rootpartition=/dev/sda2
  5. Which key combination will enable you to edit the kernel options and then boot when using GRUB Legacy?

    1. ESC for editing and then Return to boot
    2. v for editing and then Return to boot
    3. e for editing and then b to boot
    4. v for editing and then b to boot
  6. During the boot process for a virtual machine, what is the next step in the boot process after the kernel has taken over the initialization process and initializes devices?

    1. The system BIOS initializes devices.
    2. The system is placed in multi-user mode.
    3. The boot loader initializes the kernel.
    4. The root partition is mounted.
  7. Where in the filesystem will the EFI system partition (ESP) typically be mounted?

    1. /etc/efi
    2. /efi
    3. /sys/efi
    4. /boot/efi
  8. When partitioning a disk for a mail server running postfix, which partition/mounted directory should be the largest in order to allow for mail storage?

    1. /etc
    2. /usr/bin
    3. /mail
    4. /var
  9. Which option within GRUB Legacy is used to indicate that a root partition contains a non-Linux kernel?

    1. initrd
    2. non-linux
    3. rootnoverify
    4. root-win
  10. Which command will output a new GRUB2 configuration file and send the output to the correct location for booting?

    1. update-grub > /boot/grub/grub.cfg
    2. update-grub boot > /boot/grub.cfg
    3. grub-rc.d
    4. grub-boot
  11. What is the maximum number of primary partitions available on an MBR partitioning system?

    1. 2
    2. 4
    3. 1
    4. 5
  12. Which command is used to update the links and cache for shared libraries on the system?

    1. ldcache
    2. cache-update
    3. link-update
    4. ldconfig
  13. Which command and option is used to update a Debian system to the latest software?

    1. apt-update
    2. apt-get upgrade
    3. dpkg -U
    4. apt-cache clean
  14. Which option given to a yum command will install a given package?

    1. update
    2. configure
    3. install
    4. get
  15. What is the location of the home directory for the root user?

    1. /home/root
    2. /home/su
    3. /root
    4. /
  16. When using rpm2cpio, by default the output is sent to which location?

    1. STDOUT
    2. The cpio.out file
    3. The a.out file
    4. The /tmp/cpi.out file
  17. Which partition or directory structure typically holds most of the programs for a Linux system?

    1. /etc
    2. /usr
    3. /home
    4. /var
  18. Your GRUB Legacy configuration includes a dual-boot option with Linux listed first and another operating system listed second. Which of the following options will boot to the Linux partition by default?

    1. default=linux
    2. default=0
    3. default=1
    4. default=other
  19. Which file should you edit when using GRUB2 in order to set things like the timeout?

    1. /etc/default/grub
    2. /etc/grub/boot
    3. /etc/boot/grub.d
    4. /grub.d/boot
  20. Which yum option displays the dependencies for the package specified?

    1. list
    2. deplist
    3. dependencies
    4. listdeps
  21. Which options for an rpm command will display verbose output for an installation along with progress of the installation?

    1. -ivh
    2. -wvh
    3. --avh
    4. --ins-verbose
  22. Which of the following commands adds /usr/local/lib to the LD_LIBRARY_PATH when using BASH shell?

    1. set PATH=/usr/local/lib
    2. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    3. LD_LIBRARY_PATH=/usr/local/lib
    4. connectpath LD_LIBRARY_PATH=/usr/local/lib
  23. Which command can be used to download an RPM package without installing it?

    1. yumdl
    2. yumdownloadonly
    3. yumdown
    4. yumdownloader
  24. Which command will search for a package named zsh on a Debian system?

    1. apt-cache search zsh
    2. apt-get search zsh
    3. apt-cache locate zsh
    4. apt search zsh
  25. Which option within /etc/default/grub is used to configure the default operating system for boot?

    1. GRUB_OS
    2. GRUB_ON
    3. GRUB_DEFAULT
    4. DEFAULT_OS
  26. When found in a GRUB configuration file, what does the ro option indicate?

    1. Initially mount the root partition as read-only.
    2. Mount the kernel as read-only.
    3. Start the init program as read-once.
    4. Mount the root partition in Raised Object mode.
  27. Within which directory will you find the repositories used by yum?

    1. /etc/yum.conf
    2. /etc/repos
    3. /etc/yum.conf.d
    4. /etc/yum.repos.d
  28. Which rpm option can be used to verify that no files have been altered since installation?

    1. -V
    2. -v
    3. --verbose
    4. --filesum
  29. Which option for the grub-mkconfig command sends output to a file instead of STDOUT?

    1. -stdout
    2. --fileout
    3. -o
    4. -f
  30. The presence of menu.lst within the filesystem typically indicates which condition?

    1. GRUB Legacy is in use on the system.
    2. GRUB2 is in use on the system.
    3. An error has occurred creating the output to menu.lst.
    4. The options for rescue boot have been changed.
  31. Which command is used to determine the libraries on which a given command depends?

    1. ldconfig
    2. librarylist
    3. listdeps
    4. ldd
  32. Which of the following is true of Linux swap space?

    1. Swap is used to hold temporary database tables.
    2. Swap is used as additional memory when there is insufficient RAM.
    3. Swap is used by the mail server for security.
    4. Swap is used to scrub data from the network temporarily.
  33. Which of the following is not typically used to store libraries?

    1. /lib
    2. /etc/lib
    3. /usr/lib
    4. /usr/local/lib
  34. Which of the following commands updates the package cache for a Debian system?

    1. apt-get cache-update
    2. apt-cache update
    3. apt-get update
    4. apt-get upgrade
  35. Within which file are details of the current package repositories stored on a Debian system?

    1. /etc/apt.list
    2. /etc/sources.list
    3. /etc/apt/sources.list
    4. /etc/apt.d/sources.list
  36. Of the following choices, which size would be most appropriate for the /boot partition of a Linux system?

    1. Between 100MB and 500MB
    2. Between 1GB and 10GB
    3. /boot should not be partitioned separately.
    4. Less than 5MB
  37. Which of the following commands initializes a physical disk partition for use with Logical Volume Manager (LVM)?

    1. lvmcreate
    2. pvcreate
    3. fvcreate
    4. lvinit
  38. Which of the following commands installs GRUB into the MBR of the second SATA disk?

    1. grub-install /dev/hdb2
    2. grub-install /dev/sda2
    3. grub-config /dev/sda
    4. grub-install /dev/sdb
  39. Which command should be used to make changes to the choices made when a Debian package was installed?

    1. dpkg-reconfigure
    2. dpkg -r
    3. dpkg --reconf
    4. apt-get reinstall
  40. Which command is used to create a logical volume with LVM?

    1. pvcreate
    2. lvmcreate
    3. lvcreate
    4. volcreate
  41. What is the logical order for creation of an LVM logical volume?

    1. Physical volume creation, volume group creation, logical volume creation
    2. Physical volume creation, logical volume creation, volume group creation
    3. Logical volume creation, physical volume creation, volume group creation
    4. LVM creation, format, partition
  42. Which of the Debian package management tools provides a terminal-based interface for management?

    1. apt-get
    2. dpkg
    3. apt-cache
    4. aptitude
  43. Which option for yum performs a search of the package cache?

    1. seek
    2. query
    3. --search
    4. search
  44. Which command option for rpm can be used to show the version of the kernel?

    1. rpm kernel
    2. rpm -qa kernel
    3. rpm search kernel
    4. rpm --list kern
  45. Assuming a menu entry of Debian in your GRUB configuration, which option in /etc/default/grub would set that as the default operating system to boot?

    1. GRUB_OS
    2. GRUB_OS_DEF
    3. GRUB_DEFAULT
    4. GRUB_CONF
  46. Which option in /etc/yum.conf is used to ensure that the kernel is not updated when the system is updated?

    1. exclude=kernel*
    2. exclude-kernel
    3. updatekernel=false
    4. include-except=kernel
  47. Which command should be run after making a change to the /etc/default/grub file?

    1. grub
    2. grub-mkconfig
    3. grub-inst
    4. reboot
  48. Which command searches for and provides information on a given package on a Debian system, including whether or not the package is currently installed?

    1. dpkg -i
    2. dpkg -s
    3. apt-cache
    4. apt-info
  49. Which command is used to search for physical volumes for use with LVM?

    1. lvmcreate
    2. pvcreate
    3. lvmdiskscan
    4. lvmscan
  50. Which option added to yumdownloader will also download dependencies?

    1. --deps
    2. --resolve
    3. --resdeps
    4. -d
  51. Which of the following installs a previously downloaded Debian package?

    1. dpkg -i <package name>
    2. apt-install <package name>
    3. apt-slash <package name>
    4. dpkg -U <package name>
  52. A hard drive is reported as hd(0,0) by the GRUB Legacy configuration file. To which of the following disks and partitions does this correspond?

    1. /dev/hdb2
    2. /dev/hda0
    3. /dev/disk1
    4. /dev/sda1
  53. Which filesystem format type is used for the EFI System Partition (ESP)?

    1. FAT
    2. EXT4
    3. NTFS
    4. EXT3
  54. Which of the following commands installs extlinux into the /boot partition?

    1. extlinux --install /boot
    2. extlinux --inst /boot
    3. extlinux -boot
    4. extlinux /boot install
  55. Which of the following commands mounts /dev/sda1 in the /boot partition?

    1. mount /dev/sda /boot
    2. mount /boot /dev/sda1
    3. mount /dev/sda1 /boot
    4. mount -dev sda1 /boot
  56. Which of the following can be identified as an initial sector on a disk that stores information about the disk partitioning and operating system location?

    1. Minimal boot record (MBR)
    2. Master boot record (MBR)
    3. Init sector
    4. Master partition table (MPT)
  57. Which option to grub-install will place the GRUB images into an alternate directory?

    1. --boot-dir
    2. -b
    3. -boot
    4. --boot-directory
  58. Within which file is a list of the currently mounted filesystems stored?

    1. /etc/fstab
    2. /etc/curmount
    3. /var/spool/files
    4. /etc/mtab
  59. Which command is used to activate swap space on a system?

    1. mkswap
    2. swapon
    3. swapact
    4. actswap
  60. Which of the following commands displays information about a given physical volume in an LVM setup?

    1. pvdisp
    2. pvlist
    3. pvdisplay
    4. pvl
  61. Which of the following commands creates a logical volume with LVM?

    1. lvc
    2. lvcreate
    3. lvlist
    4. lvmake
  62. Which of the following commands looks for LVM physical volumes and volume groups involved in an LVM configuration?

    1. vgscan
    2. lvmscan
    3. lvlist
    4. pvlist
  63. Which of the following commands is used to display a list of physical volumes involved in LVM?

    1. pvdisp
    2. pvlist
    3. pvscan
    4. pvmm
  64. Which option to lvchange sets whether the logical volume is available?

    1. -a
    2. -b
    3. -c
    4. -d
  65. When working with a script to create directories, the script is checking to see if srv/vhosts exists. When doing an ls of the root directory, /, you see that it does exist. However, the script does not. What might be the issue?

    1. The script is not executable.
    2. The script does not have the setuid bit set.
    3. The script is using a relative path.
    4. The script is owned by root.
  66. You are architecting an application and need to choose between application containerization and virtualization. Which of the following describes a difference between application containers and a virtual machine?

    1. An application container can contain only one application whereas a virtual machine can contain many.
    2. An application container shares the host kernel whereas a virtual machine can have its own kernel.
    3. An application container is used for small applications whereas a virtual machine is used for large applications.
    4. The use of application containers is for testing only whereas a virtual machine is used for production.
  67. In addition to including /lib and /usr/lib, where does ldconfig look to find additional directories to incorporate into the library path?

    1. /etc/lib.conf
    2. /etc/ldconf
    3. /etc/lib.cfg
    4. /etc/ld.so.conf
  68. You are working with a cloud instance virtual machine deployed with an Infrastructure-as-a-Service (IaaS) provider. The virtual machine is running slowly. Which type of resource might you add to the cloud instance in order to improve performance?

    1. Compute
    2. Block storage
    3. Networking
    4. Disk
  69. When working with a system to determine if it is using GRUB or GRUB2, the presence of which file indicates that it is GRUB2?

    1. grub.cfg
    2. grub.conf
    3. menu.lst
    4. grub2.conf
  70. You are working to create a system image or template from which other virtual machines will be deployed. Which of the following represents a unique item that will change with each deployed virtual host or image?

    1. System directories
    2. MAC address
    3. Guest drivers
    4. Pilot homing
  71. Which program can be used to deploy an Ubuntu image to a remote cloud provider?

    1. dep-image
    2. cloud-init
    3. init-cloud
    4. image-dep
  72. Which file is used as the primary configuration file for the yum package manager?

    1. /etc/yum.cfg
    2. /etc/yum.d
    3. /etc/yum.conf
    4. /etc/yum.config
  73. Which of the following commands and options lists all of the files included with a package on a Debian system?

    1. apt -L
    2. dpkg -L
    3. dpkg -f
    4. apt-get show
  74. When working with SSH (Secure Shell) keys for a virtual machine cloud deployment, which key is deployed to the virtual machine so that you can connect from the host?

    1. The public key
    2. The signature file
    3. The private key
    4. Both the public and private keys
  75. When using a GPT disk, which partition needs to be created for a Linux system to boot?

    1. /boot/efi
    2. /boot/gpt
    3. /gpt
    4. /vmgpt
  76. Which option to zypper installs a package?

    1. install
    2. retr
    3. get
    4. ref
  77. You are working with a Fedora 22 system and need to install a package. Which of the following is the default package manager on this system?

    1. yum
    2. apt
    3. dpkg
    4. dnf
  78. You need to list the files available on a package on CentOS. Which of the following commands accomplishes this task?

    1. repoquery -l
    2. pkgquery -l
    3. dpkg -L
    4. pkglist
  79. You need to create a backup of user home directories including root. Which directory or directories need to be included in the backup?

    1. /home
    2. /home and /home/root
    3. /home and /root
    4. /home and /root/home
  80. In which file can you find the unique D-Bus machine ID for a given system?

    1. /etc/machine-id
    2. /etc/machineID
    3. /etc/mch.conf
    4. /etc/machine.id.conf
  81. Which option to ldconfig can be used to process only those directories given on the command line rather than the directories found in /etc/ld.so.conf?

    1. -n
    2. -i
    3. -v
    4. -r
  82. When working with package caches on Debian, you need to determine if the package list is being updated. Which option to apt-cache shows the number of available packages on the system?

    1. packagenum
    2. status
    3. stats
    4. liststatus
  83. Which option to grub-install specifies the directory in which the EFI partition is located?

    1. --boot-dir
    2. --efi
    3. --efi-boot
    4. --efi-directory
  84. Within which file are mount points for the system stored?

    1. /etc/fstab
    2. /etc/mtab
    3. /etc/partitions.list
    4. /etc/disk.conf
  85. Which of the following option sets for rpm lists the files within the package?

    1. lf
    2. qlp
    3. qf
    4. eps
  86. When working with a CentOS system, you need to determine the release of a certain package. Which command and option will accomplish this task?

    1. dpkg -i
    2. yum info
    3. yum search
    4. apt search
  87. You are using a host machine and are unsure if it supports the extensions to enable virtualization. Which of the following should you look for in /proc/cpuinfo to indicate that the system is ready for virtualization?

    1. vmx
    2. virt
    3. envirt
    4. vtcapable
  88. Within which file can you configure a filter for devices when using vgscan?

    1. lvm.conf
    2. vg.conf
    3. vgscan.conf
    4. lv.cfg
  89. Which of the following swapon options displays information on the size of swap space along with its used space?

    1. --list
    2. -a
    3. --show
    4. -h
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset