fc

Windows CMD · Text · available in the simulator

What it does

Compares files in text or binary mode.

Syntax

fc [opciones] archivo1 archivo2

Options and parameters

  • /c

    ignores case

  • /n

    displays line numbers

  • /b

    binary comparison

  • /w

    ignores whitespace

  • /A

    Displays only the first and last lines for each set of differences in ASCII comparisons.

  • /B

    Performs a binary comparison.

    fc /b a.bin b.bin
  • /C

    Disregards the case of letters.

  • /L

    Compares files as ASCII text.

  • /N

    Displays line numbers on an ASCII comparison.

    fc /n a.txt b.txt
  • /T

    Does not expand tabs to spaces.

  • /U

    Compares files as Unicode text.

  • /W

    Compresses white space and tabs for comparison.

  • /LB

    Maximum number of consecutive different lines before canceling.

Usage examples

  • fc f1 f2
  • fc f1 f2 /c
  • fc f1 f3 /n
  • fc f1 f2 /b
  • fc archivo1.txt archivo2.txt
  • fc /n a.txt b.txt
  • fc /b a.bin b.bin
Practise fc

Related commands