Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
Command introduced in Junos OS Release 11.1 for the QFX Series.
Compare two local files and describe the differences between them in default, context, or unified output styles:
files filename | — | Names of two local files to compare. |
context | — | (Optional) Display output in context format. |
ignore-white-space | — | (Optional) Ignore changes in the amount of white space. |
unified | — | (Optional) Display output in unified format. |
none
When you enter this command, you are provided feedback on the status of your request.
file compare files
user@host> file compare files /tmp/one /tmp/two100c100 < full-name "File 1"; --- > full-name "File 2"; 102c102 < class foo; # 'foo' is not defined --- > class super-user;
file compare files context
user@host> file compare files /tmp/one /tmp/two
context*** /tmp/one Wed Dec 3 17:12:50 2003
--- /tmp/two Wed Dec 3 09:13:14 2003
***************
*** 97,104 ****
}
}
user bill {
! full-name "Bill Smith";
! class foo; # 'foo' is not defined
authentication {
encrypted-password SECRET;
}
--- 97,105 ----
}
}
user bill {
! full-name "Bill Smith";
! uid 1089;
! class super-user;
authentication {
encrypted-password SECRET;
}
file compare files unified
user@host> file compare files /tmp/one /tmp/two
unified--- /tmp/one Wed Dec 3 17:12:50 2003
+++ /tmp/two Wed Dec 3 09:13:14 2003
@@ -97,8 +97,9 @@
}
}
user bill {
- full-name "Bill Smith";
- class foo; # 'foo' is not defined
+ full-name "Bill Smith";
+ uid 1089;
+ class super-user;
authentication {
encrypted-passwordSECRET;
}
file compare files unified ignore-white-space
user@host> file compare files /tmp/one /tmp/two
unified ignore-white-space --- /tmp/one Wed Dec 3 09:13:10 2003
+++ /tmp/two Wed Dec 3 09:13:14 2003
@@ -99,7 +99,7 @@
user bill {
full-name "Bill Smith";
uid 1089;
- class foo; # 'foo' is not defined
+ class super-user;
authentication {
encrypted-password <SECRET>; # SECRET-DATA
}