head

This command displays the first part of a datagrid file.

Syntax

zos head [--bytes=] [--lines=] [--quiet] path

Arguments

path

The path on the datagrid.

Options

-c=, --bytes=

Generate file output of the specified number of bytes only. The user must enter a value with this option.

-n=, --lines=

Generate file output of the specified number of lines only. The user must enter a value with this option.

-q, --quiet

Suppress all warning and informational messages.

-C=, --cols=

Specifies the terminal width for formatting. The user must enter a value with this option.

-h, --help

Displays a help message for this operation.

-d, --debug

Turns on debug output during this operation.

-v, --verbose

Turns on verbose output during this operation.

-z=, --tls=

Force TLS/SSL encryption [on|off]. The user must enter a value with this option.

-Z=, --tlsPort=

Port number for TLS/SSL connections. The user must enter a value with this option.

-y, --tlsYesNew

Force acceptance of new TLS server certificates.

-Y, --tlsYesAll

Force acceptance of all TLS server certificates.

Examples

Example 1

To display the first ten lines of the job log for the last job, use the following command:

zos head grid:///^/job.log