base command | last

Displays only the specified number of last lines from the base command output.

Syntax

base command | last NUMBER

Parameters

base command
Specifies the base command for filtering the output.
last NUMBER
Specifies the number of last lines from the base command output for displaying.

Modes

Filter mode

Usage Guidelines

The "|" symbol in this command does not act as a separator, but instead provides access to the filter command.

Examples

The following example displays last four lines of the base command output.

device# ngnpb# show running-config | last 4 

interface management 0 
  ip address dhcp 
  no ipv6 address dhcp 
  no shutdown