Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Linux+ Certification Bible.pdf
Скачиваний:
46
Добавлен:
15.03.2015
Размер:
3.78 Mб
Скачать

Chapter 8 User Environment Settings 281

Documentation

3.14 Document the installation of the operating system, including configuration

I can’t stress enough the importance of documenting the configuration of any system. You can store this documentation on diskette, tape, CD-ROM, network drive, or even paper. Use this documentation to recreate damaged systems and to provide a path for others to follow. Always include a set of formalized documentation of the systems that are supported — even if it is only a home system — because it will make system recovery that much easier.

Summary

This chapter explains many of the basics of Linux system configuration. The areas of this task include:

Hardware upgrades and additions

Hardware installation

Swap File Configuration

Mounting with fstab

Booting with lilo.conf

Document all changes

Editing system files

Editing with vi

Backing up files before editing

Document all changes

User environments

Using inittab to set environments

TERM controls terminal, console, or display-device type to be used

BASH (the Bourne Again SHell)

282 Chapter 8 Study Guide

STUDY GUIDE

The Study Guide section provides you with the opportunity to test your knowledge about the Linux+ exam objectives that are covered in this chapter. The Assessment Questions provide practice for the real exam, and the Scenarios provide practice with real situations. If you get any questions wrong, use the answers to determine the part of the chapter that you should review before continuing.

Assessment Questions

1.With respect to a Linux system’s RAM, how large should the swap file be?

A.The same size as RAM

B.Twice the size of RAM

C.Ten times the amount of RAM

D.Half the amount of RAM

2.Which command would you use to create a backup of the fstab to the file fsold?

A.copy fstab fsold

B.cp fstab fsold

C.mv fstab fsold

D.cp fsold fstab

3.What VI command is used to exit the edit mode?

A.q

B.w

C.<esc>

D.!

4.What key combination will exit VI and not save the changes made?

A.: !

B.: u!

C.: w!

D.: q!

Chapter 8 Study Guide 283

5.Which command is used to activate a swap partition?

A./dev/hda5 swap swap

B.mkswap /dev/<partition>

C.swapon /dev/<partition>

D.mkswapon /dev/<partition>

6.What are the options for IDE hard drive addressing?

A.Master and Slave

B.ID 0-15

C.Master, Slave, and Cable Select

D.ID 0-7

7.The /dev/sdc disk drive has failed on a Linux system. Which SCSI ID does this drive represent?

A.1

B.2

C.3

D.4

8.How many SCSI IDs are available on a narrow SCSI controller?

A.7

B.8

C.15

D.16

9.How many SCSI IDs are available on a wide SCSI controller?

A.7

B.8

C.15

D.16

10.What command would you use to create a file system on a new hard drive?

A.mkfs

B.cfdisk

C.linuxconf

D.format

284 Chapter 8 Study Guide

11.What daemon is used to service printing requests?

A.local printer daemon

B.line printer spooler daemon

C.line printer service

D.logical printer spooler daemon

12.The fstab file is used to perform which function?

A.Initialization file for custom commands

B.Start up and shut down the lpd printing daemon

C.The default state and terminal connections

D.Automatically mount file systems

13.The inittab file is used to perform which function?

A.Initialization file for custom commands

B.Start up and shut down the lpd printing daemon

C.The default state and terminal connections

D.Automatically mount file systems

14.What command can you use to verify the current active shell?

A.shell

B.BASH

C.proc

D.env

15.Which of the following indicates that the shell is BASH?

A.SHELL=/bin/bash

B.SHELL=/bin/bashshell

C.SHELL=/bin/BASH

D.SHELL=/etc/bash

16.Where is the file bashrc located?

A./etc/profile

B./etc

C./home

D./home/username

Соседние файлы в предмете Операционные системы