Domain 2 C220
Before you install an RPM package,you want to verify the authenticity of the package and check the digital signature to ensure it has not been altered. Which command rpm option should you use?
--checksig
Drag the GRUB or GRUB2 file or directory on the left to the correct description on the right. Tip: Not all drop zones will be used. /boot/grub/grub.cfg /boot/grub/menu.lst /etc/grub.d/ /etc/default/grub -The GRUB2 configuration file (non-editable). -The GRUB2 directory for script files. -The GRUB2 configuration file (editable). -The GRUB configuration file (non-editable). -The GRUB configuration file (editable). -The GRUB directory for script file.
-The GRUB2 configuration file (non-editable). /boot/grub/grub.cfg -The GRUB2 directory for script files. /etc/grub.d/ -The GRUB2 configuration file (editable). /etc/default/grub -The GRUB configuration file (non-editable). -The GRUB configuration file (editable). /boot/grub/menu.lst -The GRUB directory for script file.
You are working on a Debian distribution of Linux.You want to retrieve information about the Debian package database on the system. Without any command options,which 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 pendencies for the package. Which command should you use? (Tip: Do not include any command options.)
apt-get
Which command will search for packages that have been partially installed on the system? (Tip: Enter the command as if at the command prompt.)
dpkg -C
Which dpkg option lists information about a currently installed Debian package? (Tip: Enter the command as if at the command prompt.)
dpkg -p
Which command reloads the library cache every time libraries are added or removed, and updates the symbolic links? (Tip:Enter the command as if at the command prompt, but do not include options.)
ldconfig
Which command displays the shared library information for executables? (Tip: Enter the command as if at the command prompt.)
ldd
You are using LVM on your Linux system to manage the existing volumes. What command scans for logical volumes on the system? (T p: Type the command as if at the comand_prompt.)
lvscan
You are working with the following RPM package: acroread-8.1.3-51.6.i586.rpm. Drag the naming convention term on the left to match the items on the right. Release number Package name Architecture type Version number -i586 -8.1.3 -acroread -51.6
-i586 Architecture type -8.1.3 Version number -acroread Package name -51.6 Release number
What is the path for the menu.lst file? (Tip: Include the complete path.)
/boot/grub
What file contains a colon, space,tab, newline, or comma-delimited list of directories in which to search for libraries? (Tip:Enter the full path to the file.)
/etc/ld.so.conf
What is the full path for the Yellowdog Updater Modified (YUM) configuration file? (Tip: Enter the full path.)
/etc/yum.conf
When managing YUM, where should you place .repo files? (Tip: Enter the full path to the file.)
/etc/yum.repos.d/
Which directory contains user data for all standard users on the system? (Tip: Enter the full path to the directory.)
/home
Which directory contains data files that change constantly, including e-mail, print jobs, and proxy cache files? (Tip: Enter the full path to the directory .)
/var
Which dpkg option installs a package recursively? A. -R B. --configure C. -r D. -P
A. -R
Which of the following directories should be part of the partition that holds the root (/) directory? (Select three .) A. /bin B. /usr C. /etc D. /home E. /proc F. /var
A. /bin C. /etc E. /proc
Which of the following directories must remain on the same partition? (Select three.) A. /etc B. /bin C. /lib D. /home E. /usr
A. /etc B. /bin C. /lib
Which of the following directories should be on separate partitions? (Select two.) A. /home B. /lib C. /bin D. /var
A. /home D. /var
What is the purpose of the dpkg -l (lowercase L) command? A. Display all packages with names that match a specified pattern. B. Install a package C. List information about packages that are not installed. D. Show the installed files for a package.
A. Display all packages with names that match a specified pattern.
What command should you use to change the location of the default file used to search for libraries? A. ldconfig -n B. ldcontig -r C. ldconfig -f D. ldconfig -p
C. ldconfig -f
You have an RPM package called mathpac that is not working correctly.You have downloaded the latest package. Which line is the most correct option? A. First rpm -e mathpac then rpm -i mathpac B. rpm -i mathpac C. rpm -U mathpac D. rpm -F mathpac
C. rpm -U mathpac
You have installed a package called mathpac with yum. After a system upgrade, the package is not working correctly. Which command should you try first to get the package to work? A. yum remove mathpac and then yum install mathpac B. rpm -U mathpac C. yum update mathpac D. yum upgrade mathpac
C. yum update mathpac
You are installing Linux on an old computer with an old BIOS, and you are planning out the partitions of the hard disk drive.Which of the following directories should exist in the first 1024 cylinders of the hard disk drive? A. /var B. /bin C. /home D. /boot
D. /boot
You have compiled a new kernel. When you reboot, the new kernel is not shown on the boot menu.You use the GRUB boot loader. What might you need to do to fix the problem? A. Switch to the LILO boot loader. B. Reinstall the GRUB boot loader. C. Recompile the kernel. D. Edit the grub.conf file to add the new kernel.
D. Edit the grub.conf file to add the new kernel.
What is the purpose of the dpkg --configure command? A. Ignore dependency-checking for specified packages. B. Uninstall the package including the configuration files. C. Install a package if the same version is not already installed. D. Reconfigure an unpacked package.
D. Reconfigure an unpacked package.
You have previously installed package 'mplayer' and wish to remove it from your computer. Which of these methods is the best? A. Locate the files for mplayer and delete them. B. Run the command erase -r mplayer. C. Run the command tar -e mplayer. D. Run the command rpm -e mplayer-1.0-0.1O.pre4.1.fc2.fr.i386 to uninstall mplayer.
D. Run the command rpm -e mplayer-1.0-0.1O.pre4.1.fc2.fr.i386 to uninstall mplayer.
You have found a patch for the Samba server on your system.The patch is a package in rpm format. Which is the most correct procedure to install the package? A. Download the package. Run rpm -Uvh on the package to install the update. B. Download the package. Run tar -uvf on the package to install the update. Delete the rpm file after the install is complete. C. Download the package. Run rpm -ivh on the package to install the update. D. Download the package. Run inspak -uvhf on the package to install the update.
A. Download the package. Run rpm -Uvh on the package to install the update.
You have a system with two installed operating systems. You have already configured the GRUB bootloader to manage which operating system is loaded by default and how long to display the two operating system choices when the system boots up. Now you need to prevent all users (except for you) from making changes to the second operating system in the GRUB menu and restrict users from booting to the second operating system. The users should boot the system using the first listed operating system. What should you do? (Select two.Each answer is a required part of the solution.) A. Insert the lock option into the /boot/grub/grub.conf file for the second operating system. B. Insert the lock option into the /boot/grub/grub.conf file for both operating systems. C. Change the root line in the /boot/grub/grub.conf file for the second operating system. D. Insert the password option into the /boot/grub/grub.conf file before the listed operating systems.
A. Insert the lock option into the /boot/grub/grub.conf file for the second operating system. D. Insert the password option into the /boot/grub/grub.conf file before the listed operating systems.
Which of the following situations is most likely to cause a dependency problem? A. Installing two different packages that both include /usr/lib/graphlib B. Upgrading the kernel from 2.4.6 to 2.4.12 C. Several applications use the library /usr/lib/biglib D. Upgrading the library /usr/lib/biglib from version 1.4 to version 1.6
A. Installing two different packages that both include /usr/lib/graphlib
If you are getting your applications and updates in RPM format,which distribution is your system based on? A. Red Hat B. Slackware C. Debian D. Xandros
A. Red Hat
Which of the following utilities should you use if you need to ex1ract a file from an RPM package file? A. rpm2cpio B. rpm -e C. createrepo D. rpm -i
A. rpm2cpio
You need to remove an RPM package from your system. Which of the following commands could you use? (Select two.) A. yum remove B. yum search C. yum provides D. yum erase
A. yum remove D. yum erase
You have a dual-boot machine with two different Linux operating systems. Before you boot into one of the operating systems,you need to insert kernel boot options. The GRUB menu is displayed on your screen and waiting for your interaction. What should you do? (Select two. Each answer is an independent solution.) A. 1. Select the operating system. 2. Press the c key. 3. Add the kernel boot options to the existing boot options. B. 1. Select the operating system. 2. Press the e key. 3. Select the kernel line. 4. Press the e key. 5. Add the kernel boot options to the existing boot options. C. 1. Select the operating system. 2. Press the p key. 3. Press the a key. 4. Add the kernel boot options to the existing boot options. D. 1. Select the operating system. 2. Press the a key. 3. Add the kernel boot options to the existing boot options.
B. 1. Select the operating system. 2. Press the e key. 3. Select the kernel line. 4. Press the e key. 5. Add the kernel boot options to the existing boot options. D. 1. Select the operating system. 2. Press the a key. 3. Add the kernel boot options to the existing boot options.
Which dpkg option completely removes a package and its configuration files? A. -R B. -P C. -r D. --configure
B. -P
Which of the following represent the root directory? A. /boot B. / C. /home/root D. /root
B. /
You have GRUB installed on your workstation. You need to make some permanent changes to the boot loader. What file would you edit? (Select two.) A. /boot/grub.conf B. /boot/grub/grub.conf C. /boot/grub/menu.1st D. /etc/lilo.conf E. /boot/boot.conf
B. /boot/grub/grub.conf C. /boot/grub/menu.1st
Which directories typically hold the dynamic libraries on your system? (Select two.) A. /lib/ld.so/ B. /usr/local/lib/ C. /etc/ld.so.conf/ D. /usr/lib/
B. /usr/local/lib/ D. /usr/lib/
You have a Linux system with 512 MB of RAM installed. How much space should you plan to partition for the swap file? A. 2048 MB B. 512 MB C. 256 MB D. 1048 MB
B. 512 MB
Which of the following is not true regarding mount points? A. Mount points should always be empty directories. B. Mount points use the partitions represented by device files located in the /lib directory. C. /mnt is a directory that contain mount points for temporari ly mounted filesystems. D. The /home directory must be attached to the system with a mount point before use.
B. Mount points use the partitions represented by device files located in the /lib directory.
How many logical partitions can you create on an extended partition? A. 4 B. Unlimited C. 1 D. 2
B. Unlimited
Which of the following methods should you use to configure dynamic libraries on a Linux system? (Select two.) A. Edit all files with the .a filename extension. B. Use the LO_LIBRARY_PATH environment variable to specify additional directories to search for library files. C. Modify /etc/ld.so.cont to add the path of the libraries. D. Modify /etc/ld.so.cache to add the path of the libraries.
B. Use the LO_LIBRARY_PATH environment variable to specify additional directories to search for library files. C. Modify /etc/ld.so.cont to add the path of the libraries.
Which of the following commands reloads the libraries for the /bin/bash executable, but does not update the cache? A. ldd /bin/bash B. ldd -v /bin/bash C. ldconfig -N /bin/bash D. ldconfig -X /bin/bash
C. ldconfig -N /bin/bash
Which of the following statements correctly describe the differences between the apt-get remove and apt-get --purge commands? (Select two.) A. apt-get remove leaves the package installed, but removes the configuration files. B. apt-get remove removes a specified package,but leaves the configuration files. C. apt-get --purge removes the package and the configuration files. D. apt-get --purge removes a specified package, but leaves the configuration files.
B. apt-get remove removes a specified package,but leaves the configuration files. C. apt-get --purge removes the package and the configuration files.
Which of the following commands displays all of the shared library information for the /bin/bash executable? A. ldconfig -p /bin/bash B. ldd -v /bin/bash C. ldd /bin/bash D. ldconfig -N /bin/bash
B. ldd -v /bin/bash
You are preparing to use a logical volume with LVM. Which of the following commands initializes a physical volume? A. pvscan B. pvcreate C. lvcreate D. vgcreate
B. pvcreate
You need to install the package apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm. Which commands will perform the installation? (Choose two.) A. tar -Uh apt-0.5.15cnc6-1.1.fc2.fr.i386 B. rpm -ih apt-0.5.15cnc6-1.1.fc2.fr.i386 C. rpm -Uh apt-0.5.15cnc6-1.1.fc2.fr.i386 D. rpm -Xh apt-0.5.15cnc6-1.1.fc2.fr.i386 E. rpm -e apt-0.5.15cnc6-1.1.fc2.fr.i386
B. rpm -ih apt-0.5.15cnc6-1.1.fc2.fr.i386 C. rpm -Uh apt-0.5.15cnc6-1.1.fc2.fr.i386
Which command will query the system for all installed RPM packages? A. rpm -nodeps B. rpm -qa C. rpm -U D. rpm -ihv
B. rpm -qa
What is the recommended size for the /var directory partition? A. 5 GB B. 100-200 MB C. 3 GB D. 1 GB
C. 3 GB
How many primary partitions can you create on a single hard disk drive? A. 2 B. 8 C. 4 D. Unlimited
C. 4
You have a dual-boot system with a Linux and Windows operating systems.You need to configure the GRUB bootloader to display the GRUB menu for 12 seconds before GRUB automatically boots the default operating system. What should you do? A. Add timeout=120 to the /boot/grub/grub.conf file. B. Add chainloader +12 to the /boot/grub/grub.conf file. C. Add timeout=12 to the /boot/grub/grub.conf file. D. Add timeout=12 and hiddenmenu to the /boot/grub/grub.conf file.
C. Add timeout=12 to the /boot/grub/grub.conf file.
You are editing the /boot/grub/grub.cont file as shown below. default=O timeout=S splashimage=(hd0 ,0)/grub/splash .xpm .gz #hiddenmenu title fedora (2.6.33.3-85 .fc13.i686) root (hd0 ,0) kernel /vmlinuz-2 .6.33 .3-85.fc13 .i686 ro root=/dev/mapper/vg vm-lv root rd LVM LV=vg vm/ v root rd_LVM_LV=vg_vm/lv_swap rd_NO_LUKS rd_NO_MD rd NO OM LANG=en-US.UTF-8 SYSFONT=latarcyrheb sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet initrd /initramfs-2.6.33 .3-85.fcl3 .i686.img title Red Hat Linux (2.6.18-19 .8.0.19) root (hd0 ,1) kernel /boot/bzlmage .2.6.18-19 .8.0.19mar2009 ro root=/dev/mapper/vg vm-lv root rd_LVM_LV=vg_vm/lv_root rd_LVM_LV=vg_vm/lv_swap rd_NO_LUKS rd_NO_MD rd NO DM LANG=en US .UTF-8 SYSFONT=latarcyrheb -sunl6 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet initrd /boot/initrd-2 .6.18-19.8.0custom .img .19mar09 You want GRUB to load the second operating system installed on the system as the default when the system boots. What should you do? A. Change the timeout line to read timeout=2 . B. Change the #hiddenmenu line to read hiddenmenu . C. Change the default line to read default=l. D. Leave the configuration file alone,as it will already select the correct operating system.
C. Change the default line to read default=1.
You are installing a boot loader on a system that will boot both Linux and Windows. You are going to use the GRUB boot loader for Linux. Where is the best location for GRUB? Pick the most correct answer. A. GRUB should be installed on a floppy disk. B. You can't use GRUB in a Windows/Linux environment. C. GRUB should be installed on the boot sector of the Linux partition. D. GRUB should be installed on the MBA of the first fixed disk.
C. GRUB should be installed on the boot sector of the Linux partition.
You are editing the /etc/default/grub file. Which option should you use to set the default operating system? A. GRUB_DISABLE_OS_PROBER B. GRUB_SAVEDEFAULT C. GRUB_DEFAULT D. GRUB_TIMEOUT
C. GRUB_DEFAULT
What is the result of the apt-get -d command? A. Package installation is simulated without an actual installation. B. All installed packages are upgraded to the latest versions in with the information in /etc/apt/sources.list. C. Packages are downloaded to the system, but not installed. D. The package database is checked for consistency and errors.
C. Packages are downloaded to the system, but not installed.
What is the purpose of the rpm -V command? A. Test an RPM package for uninstalled dependencies without actually installing it. B. Check the authenticity of the RPM package. C. Verify that an RPM package is free from errors. D. Update an installed RPM package to the newest version.
C. Verify that an RPM package is free from errors.
Which of the following statements are true regarding the apt-get utility? (Select two.) A. apt-get installs packages on an RPM distribution. B. apt-get uses /var/lib/rpm to find information about the application repositories. C. apt-get is similar to the yum utility on an RPM distribution. D. apt-get uses /etc/apt/sources.list to find information about the application repositories.
C. apt-get is similar to the yum utility on an RPM distribution. D. apt-get uses /etc/apt/sources.list to find information about the application repositories.
Which command reconfigures an already installed package? A. dpkg --configure B. apt-get -f C. dpkg-reconfigure D. apt-get -clean
C. dpkg-reconfigure
You recently installed a third hard drive in your system. You need to install GRUB on the hard drive. Which command should you use? A. grub-install--root-directory=/boot sdO B. grub-install --root-directory=/boot sd1 C. grub-install --root-directory=/boot sd2 D. grub-install--root-directory=/boot sd3
C. grub-install --root-directory=/boot sd2
Which of the following commands will help you to determine which version of GRUB is installed on your Linux system? (Select all that apply.) A. grub1.98-install -v B. update-grub C. grub2-install -v D. grub-install -v
C. grub2-install -v D. grub-install -v
You need the Yellowdog Updater Modified (YUM) utility to check specific URLs for RPM repositories. Where should you add the URLs? A. Within the /var/lib/rpm directory. B. Within the /etc/yum.repos.d/ directory. C. Within the /var/usr/yum.log file. D. Within the /etc/yum.conf file.
D. Within the /etc/yum.conf file.
You have installed a package called mathpac with apt-get. After a system upgrade,the package is not working correctly.Which command is the most correct option to get the package to work? A. apt-get update mathpac B. apt-get dist-upgrade mathpac C. rpm -U mathpac D. apt-get upgrade mathpac
D. apt-get upgrade mathpac
Which of the following Debian package management utilities provides the front-end for APT? A. dpkg B. apt-cache C. apt-get D. aptitude
D. aptitude
Which yum option displays whether updates are available for RPM packages? A. update B. install C. list D. list updates
D. list updates
You are attempting to install an RPM package on your Linux system, but the system tells you that a newer package is already installed. What command will install the RPM package over the existing, installed package? A. rpm -e B. rpm -ihv C. rpm --rebuilddb D. rpm --force
D. rpm --force
Without installing an RPM package,you want to check for all of the package's uninstalled dependencies. Which command should you use? A. rpm --checksig B. rpm -ihv C. rpm -U D. rpm --test
D. rpm --test
You need to determine which files are associated with the metacity RPM package. What command should you use? A. rpm -V metacity B. rpm -i metacity C. rpm --test metacity D. rpm -qi metacity
D. rpm -qi metacity
Which apt-cache option shows the missing dependencies in the package cache? A. depends B. stats C. pkgnames D. unmet E. showpkg
D. unmet
You are preparing to use a logical volume with LVM. Which of the following commands creates a volume group named backup on the third disk in the system? A. vgcreate /dev/sdc backup B. lvcreate backup /dev/sdc C. vgextend /dev/sdc backup D. pvcreate /dev/sdc backup E. vgcreate backup /dev/sdc
E. vgcreate backup /dev/sdc
Drag the term on the left to match the characteristics on the right. (Tip: You may use the terms more than once.) Dynamic Library Static Library -Has a .so or .so.version extension. -Increase the size of the application. -Has an .a filename extension. -Are typically stored in /usr/lib/ and /usr/local/lib/. -Can degrade program load time if the library isn't already in use by another program.
Has a .so or .so.version extension. Dynamic Library Increase the size of the application. Static Library Has an .a filename extension. Static Library Are typically stored in /usr/lib/ and /usr/local/lib/. Dynamic Library Can degrade program load time if the library isn't already in use by another program. Dynamic Library
Which environment variable specifies additional directories to search for library files not listed in /etc/ld.so.conf?
LD_LIBRARY_PATH
You are attempting to install an RPM package on your Linux system, but the system tells you that package has dependencies that are not installed. What rpm option will override the need to install the dependencies? (Tip: Enter the command as if at the command prompt.)
rpm --nodeps
Which command will upgrade an RPM package only if an earlier version is already installed on the system?
rpm -F
Which rpm option will perform an MD5 checksum on the myapp5.4.rpm package? (Tip: Type the command as if at the command prompt.)
rpm -V myapp5.4.rpm
After updating the settings in the /etc/default/grub file, you need make sure the changes take effect. What command should you use? (Tip: Type the command as if at the command prompt.)
update-grub
Which apt-get option upgrades all installed packages to the latest versions in with the information in /etc/apt/sources.list?
upgrade
You are using LVM on your Linux system to manage the existing volumes. After adding and initializing the fourth hard drive to the system and creating a physical volume, you need to addit to the backup volume group. What command should you use? (Tip: Type the command as if at the command prompt.)
vgextend backup /dev/sdd
You are using YUM, and you need to determine which package contains the /usr/lib/libstlport_gcc.so file. Which command should you type at the command prompt? (Tip: Enter the command as if at the command prompt.)
yum whatprovides /usr/lib/libstlport_gcc.so
Which command will download an RPM package without installing it to the system? (Tip: Enter the command as if at the command prompt.)
yumdownloader