O'Reilly logo

CISSP Training Kit by David R. Miller

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Answers

This section contains the answers to the exercises and the Chapter review section in this chapter.

Exercise 6-1

On a Windows system, launch a DOS prompt.

Start > Run > CMD > Enter

At the command prompt, change to the root of the target disk.

C: > Enter

Enter the command to identify the free space on the disk and the number of files on the disk.

dir /s

The /s switch lists all files in all subdirectories. This command might run for a few minutes, depending on the size of the disk and the number of directories and files on the disk. A sample of the results is shown in Figure 6-4.

This figure shows the output from the dir /s command-line command on a Windows C drive. The top portion of the figure shows the dir data from the final four directories on the scan. An outlined portion at the bottom of the figure is the summary data from the dir /s command. It reads Total Files Listed: 173860 File(s), 112,410,473,400 bytes; 84965 Dir(s), 178,137,604,096 bytes free.

Figure 6-4. Sample results of executing the dir /s command

In the example ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required