T Commands
This chapter describes the basic Cisco NX-OS system commands that begin with T.
tail
To display the last lines of a file, use the tail command.
tail [ filesystem : [// server /]] [ directory ] filename [ lines ]
Syntax Description
Note There can be no spaces in the filesystem://server/directory/filename string. Individual elements of this string are separated by colons (:) and slashes (/).
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to display the last 10 lines of a file:
This example shows how to display the last 20 lines of a file:
Related Commands
|
|
---|---|
terminal length
To set the number of lines of output to display on the terminal screen for the current session before pausing, use the terminal length command. To revert to the default, use the no form of this command.
Syntax Description
Number of lines to display. The range is from 0 to 511. Use 0 to not pause while displaying output. |
Command Default
The initial default for the console is 0 (do not pause output). The initial default for virtual terminal sessions is defined by the client software. The default for the no form is 24 lines.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The session pauses after displaying the number of lines set in the terminal length. Press the space bar to display another screen of lines or press the Enter key to display another line. To return to the command prompt, press Ctrl-C.
The terminal length setting applies only to the current session.
Examples
This example shows how to set the number of lines of command output to display on the terminal before pausing:
This example shows how to revert to the default number of lines:
Related Commands
|
|
---|---|
terminal session-timeout
To set the terminal inactivity timeout for the current session, use the terminal session-timeout command. To revert to the default, use the no form of this command.
terminal session-timeout minutes
Syntax Description
Number of minutes. The range is from 0 to 525600 minutes (8760 hours). Use 0 to disable the terminal inactivity timeout. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The terminal session inactivity timeout setting applies only to the current session.
Examples
This example shows how to set the terminal inactivity timeout for the session to 10 minutes:
This example shows how to revert to the default terminal inactivity timeout for the session:
Related Commands
|
|
---|---|
terminal terminal-type
To set the terminal type for the current session, use the terminal terminal-type command. To revert to the default, use the no form of this command.
Syntax Description
Type of terminal. The type string is case sensitive, must be a valid type (for example, ansi, vt100, or xterm), and has a maximum of 80 characters. |
Command Default
For a virtual terminal, the terminal type is set during negotiation with the client software. Otherwise, vt100 is the default.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The terminal type setting applies only to the current session.
Examples
This example shows how to set the terminal type:
This example shows how to revert to the default terminal type:
Related Commands
|
|
---|---|
terminal width
To set the number of character columns on the terminal screen for the current line for a session, use the terminal width command. To revert to the default, use the no form of this command.
Syntax Description
Command Default
For a virtual terminal, the width is set during negotiation with the client software. Otherwise, 80 columns is the default.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The terminal width setting applies only to the current session.
Examples
This example shows how to set the number of columns to display on the terminal:
This example shows how to revert to the default number of columns:
Related Commands
|
|
---|---|
traceroute
To discover the routes that packets take when traveling to an IP address, use the traceroute command.
traceroute { dest-addr | hostname } [ vrf { vrf-name | default | management }] [ source src-addr ]
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to discover a route to a network device:
Related Commands
|
|
---|---|
Displays the network connectivity to another network device. |
|
traceroute6
To discover the routes that packets take when traveling to an IPv6 address, use the traceroute6 command.
traceroute6 { dest-addr | hostname } [ vrf { vrf-name | default | management }] [ source src-addr ]
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to discover a route to a device:
Related Commands
|
|
---|---|
Determines connectivity to another device using IPv6 addressing. |
|