Questions 1: Sun Certified System Administrator

Posted on
Like what you see? Share it.Share on Google+Share on LinkedInShare on FacebookShare on RedditTweet about this on TwitterEmail this to someone

Objective:

Manage File Systems
SubObjective:

Given a scenario, check and resolve Solaris 10 OS file system inconsistencies using fsck, and monitor file system usage using the command line (df, du, and quot commands)

Single Answer, Multiple Choice

The system administrator has identified that the /opt file system is 98 percent full and wants to examine the file system to identify the specific directories or files that are consuming more space. Which command should the system administrator run to gather this information regarding disk space?

A. du sk /opt
B. df k /opt
C. /usr/sbin/mount /opt
D. ls al /opt
E. du h /opt

Answer:
A. du sk /opt

Tutorial:
The /usr/bin/du command displays the number of disk blocks used by various files and directories. The du sk /opt command displays the summary of disk space in kilobytes for all files and directories in the /opt file system. The syntax of this du command is du -sk , where filesystem is the file system for which you want to see disk information.

The df k /opt command displays the total capacity of the /opt file system and the amount of used and available disk space, but contains one line of output for each file system. It does not provide disk information about the individual files and directories.

The /usr/sbin/mount /opt command mounts the /opt file system.

The ls al /opt command lists all the files and directories under the /opt file system. The command also displays the file sizes, but it does not display directory sizes.

The du h /opt command displays the size of each directory in the /opt file system in blocks of 1024 bytes.

Reference:
Solaris 10 Reference Manual Collection, man pages section 1: User Commands, User Commands, du(1B) display the number of disk blocks used per directory or file, http://docs.sun.com/app/docs/doc/816-5165/6mbb0m9f0?a=view.

Like what you see? Share it.Share on Google+Share on LinkedInShare on FacebookShare on RedditTweet about this on TwitterEmail this to someone
cmadmin

ABOUT THE AUTHOR

Posted in Archive|

Comment: