Forrest logo
back to the diff tool

diff:ai:32023

diff two folders highlight differences only
$ diff -rq folder1 folder2
try on your machine

This command compares the contents of two folders (folder1 and folder2) recursively and outputs only the names of files and subfolders that differ. The -q flag suppresses the normal output and only displays the names of the differing files and folders. The -r flag enables recursive comparison.

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.

Questions that are answered by this command:

  • diff two folders highlight differences only?
  • diff two folders highlight files present in both?
  • diff two folders highlight files present in both folders?
back to the diff tool