Forrest logo
back to the fc tool

fc:tldr:d527a

fc: Compare files as binary.
$ fc /b ${path\to\file1} ${path\to\file2}
try on your machine

The command "fc /b ${path\to\file1} ${path\to\file2}" is a command used in the Windows operating system to compare the contents of two files, byte by byte. Here's a breakdown of the different elements in the command:

  • "fc" is the command itself, which stands for "File Compare." It is used to compare the contents of two files.

  • "/b" is an option used with the "fc" command to specify that the comparison should be done in binary mode, examining the files byte by byte. When comparing files in binary mode, any differences in the files, even a single byte, will be considered significant.

  • "${path\to\file1}" and "${path\to\file2}" represent the placeholders for the actual paths to the two files you want to compare. They need to be replaced with the actual file paths, including the drive letter, the directories, and the filenames.

Once you provide the actual file paths, running this command will compare the contents of the two specified files byte by byte and provide an output indicating whether the files are identical or if there are differences between them.

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