PREV NEXT INDEX

Avici Systems Inc.


tail


Displays the last lines of the specified file.

Syntax: tail filename

tail filename n

filename

The last 10 lines of the specified file are displayed.

n

Optional. Specifies the number of lines to display. Default is 10 lines. Valid values are 1 - 90 lines.

Description: The tail command enables you to display only the last lines of a large file. This feature is useful when you are viewing large log files.

Use the tail filename syntax to display the last 10 lines of the specified file.

Use the tail filename n syntax to display the last n lines of the specified file, where n is an integer from 1 to 90.

Factory Default: Display the last 10 lines.

Command Mode: Privileged.

Example 1: In the following example, the tail command displays the last 10 lines of a startup configuration file:

router#tail startup-config

!

router ospf 1

!

router bgp 9999

bgp dampening

!

ip default-gateway 10.5.0.1

ip route 10.1.0.0 255.255.0.0 10.5.0.1

!

end

Example 2: In the following example, the tail filename n command displays the last 5 lines of a startup configuration file:

router#tail startup-config 5

!

ip default-gateway 10.5.0.1

ip route 10.1.0.0 255.255.0.0 10.5.0.1

!

end

Related Commands: more


PREV NEXT INDEX

Copyright © 2005 Avici Systems Inc.
Avici® and TSR® is a registered trademark of Avici Systems Inc.
IPriori™, Composite Links™, SSR™, QSR, and NSR® are trademarks of Avici Systems Inc.

   Source File Name: ConfigFileMgrCmd.fm
    HTML File Name: ConfigFileMgrCmd24.html
    Last Updated: 02/25/05 at 14:26:17

Please email suggestions and comments to: doc@avici.com