Forrest logo
back to the fc tool

fc:tldr:e05fe

fc: Open in the default system editor.
$ fc
try on your machine

The "fc" command stands for "file compare" in various command-line environments. It allows you to compare two files or sets of files and display the differences between them.

The basic syntax of the "fc" command is: fc [options] file1 file2

Here are some common options you can use with the "fc" command:

  • /b: Performs a binary comparison of the files. This option is useful when comparing non-text files.
  • /c: Ignores the case sensitivity of the characters when comparing.
  • /l: Displays only the lines that are different in the compared files.
  • /n: Displays the line numbers along with the differences.
  • /w: Ignores white space when comparing. It considers two lines as equal if they differ only in white space.

The "fc" command compares the content of the files and displays the differences in the command prompt. It shows the differing lines, indicating where the differences start and end, along with the type of difference (added, deleted, or modified).

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