diff

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

Supported in the following platforms:

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

nx9500-6C8809#diff startup-config running-config
--- startup-config
+++ running-config
@@ -1,12 +1,10 @@
+!### show running-config
 !
 ! Configuration of NX9500 version 5.9.6.0-004D
 !
 !
 version 2.6
 !
-password-encryption-version 1.0
-inline-password-encryption
-password-encryption-key secret 2 776f9d6d5bb08fac753394d779cbc5a200000020a4ca26def55d4d77952308cd5e3afc66c06581bb1e5af6d6b033fd664c363522
 !
 client-identity-group default
  load default-fingerprints
@@ -35,13 +33,13 @@
 !
 alias string $IN-Blr-EcoSpace-Floor-4 IBEF4
 !
-alias encrypted-string $READ 2 LKSXiTieTV5hybKxfbd6JwAAAAZ/lakoqHh/ZfyHLJWzluTH
+alias encrypted-string $READ 2 1og6ZeMyEVJhybKxfbd6JwAAAAahnGq6RaJb70CEIbVpTYre
--More--
nx9500-6C8809#