Self Test


The following questions will help you measure your understanding of the material presented in this chapter. Read all the choices carefully because there might be more than one correct answer. Choose all correct answers for each question.

1. 

Which of the following commands are used to obtain disk space information? (Choose all that apply.)

  1. df

  2. du

  3. quot

  4. ls

  5. ds

image from book

2. 

Which of the following file systems are (memory-based) virtual file systems? (Choose all that apply.)

  1. NFS

  2. CacheFS

  3. ProceFS

  4. UFS

  5. TEMPFS

  6. UDF

image from book

3. 

Which of the following directories on Solaris 10 contain the files related to the physical devices?

  1. /drivers

  2. /dev

  3. /devices

  4. /etc

  5. /drv

image from book

4. 

Which of the following directories on Solaris 10 contain the configuration files? (Choose all that apply.)

  1. /drivers

  2. /mnt

  3. /export

  4. /etc

  5. /bin

image from book

5. 

Which of the following types of links can span across the file systems? (Choose all that apply.)

  1. Symbolic links

  2. Hard links

  3. Loop links

  4. Directory links

image from book

6. 

Which of the following commands can you use on a mounted file system? (Choose all that apply.)

  1. fsck

  2. ls

  3. quot

  4. du

image from book

7. 

The files under the /devices directory are controlled by which file system?

  1. MNTFS

  2. devicefs

  3. devfs

  4. HSFS

image from book

8. 

Which of the following statements are not true? (Choose all that apply.)

  1. A hard link can only point to a file that is not a directory.

  2. A hard link has a different inode number from that of the file that it points to.

  3. You cannot create a hard link to a file that does not exist.

  4. You cannot create a symbolic link to a file that does not exist.

image from book

9. 

You want to find out how each user on a file system is using disk space? Which of the following commands can you use? (Choose all that apply.)

  1. df

  2. du

  3. quot

  4. ls

image from book

10. 

What can be the maximum size of a large UFS file system?

  1. 1 terabyte

  2. 1 gigabyte

  3. 10 terabytes

  4. 2 gigabytes

image from book

11. 

You have just installed Solaris 10 on your system. Underneath which directory can you locate the SMF components?

  1. /smf

  2. /etc

  3. /lib

  4. /bin

image from book

12. 

There have been problems in mounting the /var file system? You reboot the system into a single-user mode and issue the fsck command on /var. The system reports an allocated but unreferenced file, and you say yes when asked whether the file should be reconnected. After the system has been booted, in which directory can you find this reconnected file?

  1. /lost+found

  2. /unreferenced

  3. /var/tmp/lost+found

  4. /var/lost+found

  5. /tmp

image from book

Answers

1. 

þ A, B, and C. The df command is used to get. a report on disk usage by the file systems, the du command to get a report on disk usage by directories and files, and the quot command to get a report on disk usage by users.

ý D is incorrect because the ls command displays information about files and not about the disk space. E is incorrect because there is no such command as ds to display disk space information.

2. 

þ B, C, and E. The file systems CacheFS, ProcFS, and TEMPFS are memory-based virtual file systems.

ý A is incorrect because NFS is a network file system that resides on a disk and is accessible from systems across the network. D is incorrect because the UNIX file system, the default file system for Solaris, is a disk-based system. F is incorrect because universal disk format is used to store information on DVDs.

3. 

þ B and C. Device-related files are in the /devices directories, and links to those files are in the /dev directory.

ý A and E are incorrect because there are no such directories as /drivers and /drv. D is incorrect because the /etc directory contains configuration files and not device files.

4. 

þ D. The /etc directory contains administrative and configuration files.

ý A is incorrect because there is no such directory as /devices. B is incorrect because the /mnt directory is the default mount point for fault systems. C is incorrect because the /export directory is used for creating home directories. E is incorrect because the /bin directory contains links to standard system commands.

5. 

þ A. Symbolic links span across the file systems.

ý B is incorrect because hard links can point only to the files on the same file system. C and D are incorrect because there are no such links.

6. 

þ B, C, and D. The ls command is used to obtain information about files, and the quot and du commands are used to obtain disk space information.

ý A is incorrect because the fsck command is used only while the file system is unmounted; otherwise you could create data inconsistencies.

7. 

þ C. The files in the /devices directory represent the physical devices and are entirely controlled by the devfs file system

ý A is incorrect because the MNTFS is a virtual file system that contains information about the mounted file systems. B is incorrect because there is no such file system as devicefs. D is incorrect because HSFS is the file system that is used to write on the CD-ROMs.

8. 

þ B and D. All the hard links that point to a file share the inode with the file. You can create symbolic links to a file that does not yet exist.

ý A and C are incorrect because both are true statements.

9. 

þ C. The quot command drills down the disk usage by user name.

ý A is incorrect because the df command is used to get information about disk space usage by file system. B is incorrect because the du command is used to determine the disk space allocated to files and directories. D is incorrect because the ls command is used to get information about files, not about disk usage.

10. 

þ A. The maximum size of a large file system is 1 terabyte.

ý B, C, and D are incorrect because they do not represent the maximum size of a large file system, which is 1 terabyte.

11. 

þ C. The shared libraries including the SMF components are in the directories underneath /lib.

ý A is incorrect because there is no automatically created /smf directory in Solaris 10. B is incorrect because the /etc directory contains mostly the configuration files, and D is incorrect because /bin is a symbolic link to the directory /usr/bin.

12. 

þ D. The fsck command places the unreferenced files in the lost+found directory at the top of the file system on which the command is run.

ý A and C are incorrect because the fsck command places the unreferenced files in the lost+found directory at the top of the file system on which the command is run, and B is incorrect because no directory named /unreferenced is automatically created during Solaris installation.




Sun Certified System Administrator for Solaris 10 Study Guide Exams 310-XXX & 310-XXX
Sun Certified System Administrator for Solaris 10 Study Guide Exams 310-XXX & 310-XXX
ISBN: N/A
EAN: N/A
Year: 2005
Pages: 168

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