Displaying The Last Lines In A File; Redirecting Show Command Output To A File - Cisco Nexus 5500 Series Configuration Manual

Nx-os fundamentals configuration guide, release 7.x
Hide thumbs Also See for Nexus 5500 Series:
Table of Contents

Advertisement

Displaying the Last Lines in a File

DETAILED STEPS
Command or Action
Step 1
dir [filesystem:[//module/]directory]]
Example:
switch# dir bootflash:
Step 2
gzip [filesystem:[//module/][directory/] |
directory/]filename
Example:
switch# gzip show_tech
Step 3
gunzip [filesystem:[//module/][directory/] |
directory/]filename .gz
Example:
switch# gunzip show_tech.gz
Displaying the Last Lines in a File
You can display the last lines of a file.
SUMMARY STEPS
1. tail [filesystem:[//module/]][directory/]filename [lines]
DETAILED STEPS
Command or Action
Step 1
tail [filesystem:[//module/]][directory/]filename [lines]
Example:
switch# tail ospf-gr.conf

Redirecting show Command Output to a File

You can redirect show command output to a file on bootflash:, slot0:, volatile:, or on a remote server.
SUMMARY STEPS
1. show-command > [filesystem:[//module/][directory] | [directory /]]filename
Cisco Nexus 5500 Series NX-OS Fundamentals Configuration Guide, Release 7.x
114
Using the Device File Systems, Directories, and Files
Purpose
(Optional)
Displays the contents of the current directory. The file system
and directory name are case sensitive.
Compresses a file. After the file is compressed, it has a .gz
suffix.
Uncompresses a file. The file to uncompress must have the
.gz suffix. After the file is uncompressed, it does not have
the .gz suffix.
Purpose
Displays the last lines of a file. The default number of lines
is 10. The range is from 0 to 80 lines.
OL-30890-01

Advertisement

Table of Contents
loading

Table of Contents