The diff command is used to compare the contents of two files and display the differences. The -u option stands for "unified" and shows the differences in a unified format, which includes the lines that differ between the two files along with a few lines of context. When running the command diff -u file1.txt file2.txt, it compares the two files and shows the differences between them. Reference: GNU Diffutils: Unified Format