LPIC-1 Linux Professional Institute Certification Study Guide. Richard Blum
Чтение книги онлайн.

Читать онлайн книгу LPIC-1 Linux Professional Institute Certification Study Guide - Richard Blum страница 11

Название: LPIC-1 Linux Professional Institute Certification Study Guide

Автор: Richard Blum

Издательство: John Wiley & Sons Limited

Жанр: ОС и Сети

Серия:

isbn: 9781119021193

isbn:

СКАЧАТЬ bg simbigbang

      D. background simbigbang

      E. nice simbigbang

      21. Which of the following commands will install an RPM package file called theprogram-1.2.3-4.i386.rpm on a computer? (Select two.)

      A. rpm – Uvh theprogram-1.2.3-4.i386.rpm

      B. rpm – i theprogram-1.2.3-4.i386.rpm

      C. rpm – U theprogram

      D. rpm – e theprogram-1.2.3-4.i386.rpm

      E. rpm – Vp theprogram-1.2.3-4.i386.rpm

      22. What tool can diagnose and fix many common Linux filesystem problems?

      A. mkfs

      B. fsck

      C. chkdsk

      D. scandisk

      E. fdisk

      23. You've just installed MySQL, and you intend to use it to store information about the animals in a zoo, from the anteaters to the zebras. What command are you likely to use first, once you start MySQL?

      A. CREATE DATABASE animals;

      B. USE animals;

      C. CREATE TABLE animals;

      D. INSERT INTO animals;

      E. UPDATE animals;

      24. Which of the following commands displays help on topic, when typed in a Linux shell? (Select two.)

      A. manual topic

      B. man topic

      C. ? topic

      D. info topic

      E. hint topic

      25. A computer's hardware clock keeps track of the time while the computer is powered off. In what formats may this time be stored on an x86 Linux system? (Select two.)

      A. Coordinated Universal Time (UTC)

      B. Internet Time

      C. Local time

      D. 12-hour time

      E. Mars time

      26. You want to know what kernel modules are currently loaded. What command would you type to learn this information?

      A. insmod

      B. depmod

      C. modprobe

      D. lsmod

      E. modinfo

      27. You want to enable all members of the music group to read the instruments.txt file, which currently has 0640 (-rw-r-) permissions, ownership by root, and group ownership by root. How might you accomplish this goal? (Select two.)

      A. Type chown music instruments.txt in the file's directory.

      B. Type chgrp music instruments.txt in the file's directory.

      C. Type chgroup music instruments.txt in the file's directory.

      D. Type chmod 0600 instruments.txt in the file's directory.

      E. Type chown :music instruments.txt in the file's directory.

      28. You want to create a link to the /usr/local/bin directory in another location. Which of the following statements is true?

      A. You can do this only if /usr/local/bin is on a journaling filesystem.

      B. You must own /usr/local/bin to create the link.

      C. You can create the link only if the link's location is on the same filesystem as the original directory.

      D. Only the system administrator can do this.

      E. The link will probably have to be a symbolic link.

      29. Which of the following, when typed in vi's command mode, saves a file and quits the program? (Select two.)

      A. :rq

      B. :wq

      C. :re

      D. :we

      E. ZZ

      30. A user's home directory includes a file called ∼/.forward that consists of one line: |∼/junkme. What is the effect of this configuration?

      A. The user's incoming mail is forwarded to the junkme user on the same system.

      B. The user's incoming mail is stored in the ∼/junkme file.

      C. The user's incoming mail is sent through the ∼/junkme program file.

      D. The user's incoming mail is flagged as spam and deleted.

      E. The user's incoming mail is forwarded to the same user on the junkme computer.

      Answers to the Assessment Test

      1. B. The Monitor section defines the monitor options and settings but doesn't combine it with the video card, so option A is incorrect. The Modeline line defines the available video modes in the Monitor section, but it doesn't define video cards, so option C is incorrect. Option D, the Device section, is also incorrect; it defines the video card but doesn't match it with a monitor on the system. Option E is incorrect because the Module section defines which X server modules (or drivers) are loaded but it doesn't match monitors and video cards. Option B, the Screen section, tells the X server about the combination of video cards and monitors that you're using, so it's the correct answer. For more information, see Chapter 6, “Configuring the X Window System, Localization, and Printing.”

      2. A, C. Examining a process listing (obtained from ps) for signs of the super server is the most reliable way to determine which one is actually running, so option A is correct. The presence of the super server's configuration file or files (as in option C) is also a good diagnostic, although some older systems that have been upgraded may have both sets of configuration files. There is no standard superserver utility to report СКАЧАТЬ