Previous Topic: bounce Utility--Forcibly Reboot the System (Windows Only)

Next Topic: email Utility--Send an Email

checkfile Utility--Display the File Size

The checkfile.exe utility displays the file size of a file that you specify. If the file does not exist, it returns 0 (zero).

This utility has the following format:

checkfile [OPTIONS] filename
OPTIONS

Specifies the available options for the command. The following options are available:

-v

Displays detailed (verbose) information. This option must precede the -s option.

-sb

Displays the file size in bytes.

-sk

Displays the file size in kilobytes.

-sm

Displays the file size in megabytes.

-sg

Displays the file size in gigabytes.

-h

Displays the checkfile.exe usage message.

filename

Specifies the absolute path name of the file whose size you want to display.

Examples

Windows

checkfile -sk  C:\pagefile.sys

UNIX

checkfile -sm /var/log/syslog