How to Use the Head Utility

Use the Head utility to view a user-defined number of lines from the start of a file.

To Access Head from the Dashboard

To run Head from the Support Tools Dashboard:

1.Use the System Select screen to select the system you want to work with.

2.From the Dashboard menu, select Common Tools > Head.

3.In the Arguments field, enter desired arguments, as described in the Using section below.

Note: When entering arguments, the Head command is already implied. Do not enter it in the Arguments field.

4.Specify the command duration time or accept the default (60 seconds). This is the amount of time the command will attempt to run before terminating.

5.If desired, check Elevate Command Priority. This ensures the command will run regardless of the level of server activity.

6.Click the Run button.

Using Head

Head displays the first <count> lines of each of the files listed on the line. If no files are listed, display the first <count> lines of the standard input.

<count> defaults to 10.

Syntax

head [-<count> -n <count>] [-vx?] [ file1 ... ]

Command Line Options

The options for Head are:

-<count> or -n <count>: specifies the number of lines to display.

Cisco Support Tools 1.0 User Guide

How to Use the Head Utility 231

Page 231
Image 231
Cisco Systems 1.0 (1) manual How to Use the Head Utility, To Access Head from the Dashboard, Using Head