Forrest logo
back to the fc tool

fc:tldr:39104

fc: Compare files as ASCII text.
$ fc /l ${path\to\file1} ${path\to\file2}
try on your machine

The command "fc /l ${path\to\file1} ${path\to\file2}" is a command used in Windows Command Prompt or PowerShell to compare two files and display the differences between them. Here's a breakdown of the command:

  • "fc" is the command itself, short for "File Compare".
  • "/l" is a switch option that tells the command to do a comparison in a case-insensitive way. It ignores differences in letter case when comparing the two files.
  • "${path\to\file1}" and "${path\to\file2}" are placeholders for the actual file paths. You need to replace them with the specific paths to the files you want to compare. Make sure to include the file names and file extensions in the paths.

When you run this command in the Command Prompt or PowerShell, it will compare the contents of "file1" and "file2" and display the differences between them. The differences will be shown in a side-by-side format, indicating which lines in the files are different.

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