Sie sind auf Seite 1von 4

SUSE Linux Enterprise Server Administration (Course 3037)

3-1

SUSE Linux Enterprise Server Administration (Course 3037)


1-4188-3731-8
Chapter 3 Answers

Review Questions
1. Which command can you use to view the file systems supported by your Linux kernel?
_____
ANSWER: cat /proc/filesystems
2. Which of the following are journaling file systems that can be created using the mkfs
command? (Choose all that apply.)
a. JFS
b. ext2
c. ReiserFS
d. ext3
ANSWER: a,d
3. What information is stored in the inode of a file? (Choose all that apply.)
a. File ownership
b. File time stamp
c. File data
d. File name
ANSWER: a,b
4. What is the maximum size of the ext2, ext3 and ReiserFS file systems? _____
ANSWER: 16 TB
5. Which of the following are advantages of using ReiserFS instead of ext2? (Choose two
answers.)
a. Faster disk access
b. Larger supported file size
c. Better block utilization
d. Dynamic inode allocation
ANSWER: a,c,d
6. What inode number is used for mount point directories? _____
ANSWER: 2

SUSE Linux Enterprise Server Administration (Course 3037)

3-2

7. What device file refers to the third primary partition on an IDE primary slave hard disk?
_____
ANSWER: /dev/hdb3
8. Which of the following are good practices when designing partitions for a new Linux
system? (Choose all that apply)
a. Plan for future software additions
b. Create less than 256 MB of swap
c. Use SCSI hard disks where possible
d. Create a partition for the / and /boot directories at minimum
ANSWER: a,c,d
9. How many primary partitions may be created in total on a hard disk? _____
ANSWER: 4
10. How many partitions may be created in total on an IDE hard disk? _____
ANSWER: 63
11. Which of the following commands could be used to create and manage partitions on the
second SCSI hard disk?
a. fdisk /dev/sdb
b. fdisk /dev/hdb
c. fdisk /dev/sdc
d. fdisk /dev/hdc
ANSWER: a
12. Which command would you use to check a ReiserFS file system for errors? _____
ANSWER: reiserfsck
13. Which of the following files could you edit to mount a new file system at system
initialization?
a. /etc/mtab
b. /proc/mounts
c. /etc/fstab
d. /proc/filesystems
ANSWER: c
14. How many volume groups are typically used in an SLES system? _____
ANSWER: 1

SUSE Linux Enterprise Server Administration (Course 3037)

3-3

15. Which command can you force the unmounting of /dev/hda3 from the /data directory?
_____
ANSWER: umount f /dev/hda3 or umount f /data
16. Which command can you use to determine how much free space is available on mounted
filesystems? _____
ANSWER: df
17. You have enabled user and group quotas on the file system that is mounted to the /var
directory. What files contain the quota limits? (Choose two answers.)
a. /var/aquota.group
b. /var/aquota.user
c. /aquota.group
d. /aquota.user
ANSWER: a,b
18. Which command can you use to modify the quotas for the geeko user? _____
ANSWER: edquota u geeko
19. What tar command can you use to backup all files in the /etc directory to the device
/dev/nst0? _____
ANSWER: tar cvf /dev/nst0 /etc

Discovery Exercises
Creating Partitions and File Systems
Answers will vary depending on the hardware and partitions used. The option to tune2fs that
converts from ext2 to ext3 is j.

Configuring User Quotas


Once the /etc/fstab file has the usrquota option, the /data filesystem is mounted from its entry,
and the quota service is turned on, you can create the /data/aquota.user and /data/aquota.group
files and use the quotacheck mavug command to index file ownership. Next, use the edquota
u geeko command to set the appropriate limits for the geeko user and the edquota t command
to set the grace period to 3 days. The repquota /data command can be used to test the results.

SUSE Linux Enterprise Server Administration (Course 3037)

Archiving Data
The commands for this section include:
tar zcvf /root/databackup.tar.gz /data
tar ztvf /root/databackup.tar.gz
cd /tmp; tar zxvf /root/databackup.tar.gz

3-4

Das könnte Ihnen auch gefallen