Forrest logo
back to the fc tool

fc:tldr:ca524

fc: Perform a case-insensitive comparison.
$ fc /c ${path\to\file1} ${path\to\file2}
try on your machine

The command "fc /c ${path\to\file1} ${path\to\file2}" is a command used in the Windows command prompt to compare two files and display the differences between them.

Here is a breakdown of the command:

  • "fc" stands for "file compare" and is the command used for file comparison in the Windows command prompt.
  • "/c" is an option or switch used with the "fc" command to force the binary comparison of the two files. This means that the files are compared byte by byte, without considering any text encoding or formatting differences.
  • "${path\to\file1}" represents the full file path of the first file you want to compare. You need to replace "${path\to\file1}" with the actual file path, including the directory and the file name, for example, "C:\folder\file1.txt".
  • "${path\to\file2}" represents the full file path of the second file you want to compare. Like with the first file, you need to replace "${path\to\file2}" with the actual file path, including the directory and the file name, for example, "C:\folder\file2.txt".

When you execute this command in the command prompt, it will compare the two specified files byte by byte and provide a comparison result showing the differences between the files.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the fc tool