The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the basic Cisco NX-OS system commands that begin with T.
To display the last lines of a file, use the tail command.
tail [ filesystem : [// server /]] [ directory ] filename [ lines ]
Note There can be no spaces in the filesystem://server/directory/filename string. Individual elements of this string are separated by colons (:) and slashes (/).
|
|
---|---|
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:
|
|
---|---|
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.
Number of lines to display. The range is from 0 to 511. Use 0 to not pause while displaying output. |
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.
|
|
---|---|
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.
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:
|
|
---|---|
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
Number of minutes. The range is from 0 to 525600 minutes (8760 hours). Use 0 to disable the terminal inactivity timeout. |
|
|
---|---|
The terminal session inactivity timeout setting applies only to the current session.
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:
|
|
---|---|
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.
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. |
For a virtual terminal, the terminal type is set during negotiation with the client software. Otherwise, vt100 is the default.
|
|
---|---|
The terminal type setting applies only to the current session.
This example shows how to set the terminal type:
This example shows how to revert to the default terminal type:
|
|
---|---|
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.
For a virtual terminal, the width is set during negotiation with the client software. Otherwise, 80 columns is the default.
|
|
---|---|
The terminal width setting applies only to the current session.
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:
|
|
---|---|
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 ]
|
|
---|---|
This example shows how to discover a route to a network device:
|
|
---|---|
Displays the network connectivity to another network device. |
|
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 ]
|
|
---|---|
This example shows how to discover a route to a device:
|
|
---|---|
Determines connectivity to another device using IPv6 addressing. |
|