Self Test


The following questions will help you measure your understanding of the material presented in this chapter. As no multiple choice questions appear on the Red Hat exams, no multiple choice questions appear in this book. These questions exclusively test your understanding of the chapter. While the topics in this chapter are "prerequisites," it is okay if you have another way of performing a task. Getting results, not memorizing trivia, is what counts on the Red Hat exams. There may be more than one answer to many of these questions.

Partitioning Hard Disks

1. 

What fdisk command lists configured partitions from all attached hard drives?

_____________________________________________________________

the fdisk command that lists configured partitions from all attached hard drives is fdisk -l .

2. 

What command from the parted prompt lists all created partitions?

_____________________________________________________________

image from book

3. 

If you've just installed a new hard drive and are configuring it in parted, what command do you need to run first?

______________________________________________________________

image from book

4. 

After creating a swap partition, what command activates it?

______________________________________________________________

image from book

Answers

1. 

The fdisk command that lists configured partitions from all attached hard drives is fdisk -l.

2. 

The command from the parted prompt that lists all created partitions is print all. The print command by itself just prints active partitions.

3. 

If you've just installed a new hard drive and are configuring it in parted, the command you need to run first is mklabel.

4. 

After creating a swap partition, the swapon partitionname activates it; just substitute the device file associated with the partition (such as /dev/sda10 or /dev/VolGroup00/LogVol03) for partitionname.

Managing Filesystems

5. 

What is the primary advantage of a journaling filesystem such as ext3?

______________________________________________________________

image from book

6. 

What can you run on /etc/samba/smb.conf to make sure even the administrative user can't delete it just using the rm command? The command must still allow the file to be readable.

______________________________________________________________

image from book

7. 

What command formats /dev/sdb3 to the default Red Hat filesystem format?

______________________________________________________________

image from book

Answers

5. 

The primary advantage of a journaling filesystem such as ext3 is faster data recovery if power is suddenly cut.

6. 

To make sure even the administrative user can't delete /etc/samba/smb.conf just using the rm command, run chattr +i /etc/samba/smb.conf. Other commands such as chmod 000 /etc/ samba/smb.conf provide some level of protection, but the file would no longer be readable.

7. 

The command that formats /dev/sdb3 to the default Red Hat filesystem format is mkfs.ext3 /dev/sdb3. Since ext3 is atop the list in /etc/filesystems, the mkfs /dev/sdb3 command works as well.

Filesystem Management and the Automounter

8. 

To change the mount options for a local filesystem, what file would you edit?

______________________________________________________________

to change the mount options for a local filesystem, edit /etc/fstab.

9. 

If you've started the autofs daemon and want to read the list of shared NFS directories from the first.example.com computer, what automounter-related command would you use?

______________________________________________________________

image from book

10. 

What daemon do you need to activate before using the automounter?

______________________________________________________________

the daemon you need to activate before using the automounter is autofs .

Answers

8. 

To change the mount options for a local filesystem, edit /etc/fstab.

9. 

If you've started the autofs daemon and want to read the list of shared NFS directories from the first.example.com computer, the automounter-related command you'd use to list those directories is /etc/auto.net first.example.com.

10. 

The daemon you need to activate before using the automounter is autofs.

Access Control Lists and Other Security Attributes

11. 

What setting do you need to add to /etc/fstab to make sure a filesystem is mounted with ACLs the next time you boot Linux?

______________________________________________________________

image from book

12. 

What is the default policy associated with SELinux on Red Hat distributions?

______________________________________________________________

the default policy associated with selinux on red hat distributions is targeted .

Answers

11. 

The setting you need to add to /etc/fstab to make sure a filesystem is mounted with ACLs the next time you boot Linux is acl. For example, if you want to support ACL options, you can add the setting to the desired line in that file. The following would add ACL options to the directory labeled /home:

 LABEL=/home /home ext3 defaults,acl 1,2 

12. 

The default policy associated with SELinux on Red Hat distributions is targeted.



RHCE Red Hat Certified Engineer Linux Study Guide (Exam RH302)
Linux Patch Management: Keeping Linux Systems Up To Date
ISBN: 0132366754
EAN: 2147483647
Year: 2004
Pages: 227
Authors: Michael Jang

Similar book on Amazon
Linux Quick Fix Notebook
Linux Quick Fix Notebook
Self-Service Linux: Mastering the Art of Problem Determination
Self-Service Linux: Mastering the Art of Problem Determination
RHCSA/RHCE Red Hat Linux Certification Study Guide (Exams EX200 & EX300), 6th Edition (Certification Press)
RHCSA/RHCE Red Hat Linux Certification Study Guide (Exams EX200 & EX300), 6th Edition (Certification Press)
Security Strategies in Linux Platforms and Applications (Information Systems Security & Assurance)
Security Strategies in Linux Platforms and Applications (Information Systems Security & Assurance)

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net