
diff
List of commands for diff:
-
diff:ai:0953c diff two directories show only differences$ diff -rq dir1/ dir2/try on your machineexplain this command
-
diff:ai:096d5 Compares files line by line and displays the differences between them$ diff ${options} file1 file2try on your machineexplain this command
-
diff:ai:32023 diff two folders highlight differences only$ diff -rq folder1 folder2try on your machineexplain this command
-
diff:ai:e096d Compare two files file1.txt and file2.txt and show only which files differ$ diff -q file1.txt file2.txttry on your machineexplain this command
-
diff:tldr:1a22d diff: Create a patch file for Git from the differences of two text files, treating nonexistent files as empty.$ diff --text --unified --new-file ${old_file} ${new_file} > ${diff-patch}try on your machineexplain this command
-
diff:tldr:2464e diff: Compare directories recursively (shows names for differing files/directories as well as changes made to files).$ diff --recursive ${old_directory} ${new_directory}try on your machineexplain this command
-
diff:tldr:2d9aa diff: Compare files (lists changes to turn `old_file` into `new_file`).$ diff ${old_file} ${new_file}try on your machineexplain this command
-
diff:tldr:553fa diff: Compare files, showing the differences in unified format (as used by `git diff`).$ diff --unified ${old_file} ${new_file}try on your machineexplain this command
-
diff:tldr:bd06d diff: Compare files, ignoring white spaces.$ diff --ignore-all-space ${old_file} ${new_file}try on your machineexplain this command
-
diff:tldr:de649 diff: Compare directories, only showing the names of files that differ.$ diff --recursive --brief ${old_directory} ${new_directory}try on your machineexplain this command
-
diff:tldr:ec137 diff: Compare files, showing the differences side by side.$ diff --side-by-side ${old_file} ${new_file}try on your machineexplain this command