diff

Displays the differences between two files on a device's file system or a particular URL

Supported on the following devices:

Syntax

diff [<FILE>|<URL>] [<FILE>|<URL>]

Parameters

diff [<FILE>|<URL>] [<FILE>|<URL>]

<FILE>

The first <FILE> is the source file for the diff command. The second <FILE> is used for comparison.

<URL>

The first <URL> is the source file's URL. The second <URL> is the second file's URL.

Examples

ap505-13403B#diff startup-config running-config
--- startup-config
+++ running-config
@@ -1,3 +1,4 @@
+!### show running-config
 !
 ! Configuration of AP505 version 7.1.0.0-105T
 !
@@ -81,13 +82,10 @@
 rf-domain default
  no country-code
 !
-self
-! ap505 94-9B-2C-13-40-38
- radio-count 2
+ap505 94-9B-2C-13-40-38
  use profile default-ap505
  use rf-domain default
  hostname ap505-13403B
- no adoption-site
  ip default-gateway 10.234.160.254
  interface ge1
   switchport mode access
ap505-13403B#