mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-12-26 10:24:40 +03:00
430 B
430 B
diff
Compare files and directories.
- Compare files:
diff {{file1}} {{file2}}
- Compare files, ignoring white spaces:
diff -w {{file1}} {{file2}}
- Compare files, showing differences side by side:
diff -y {{file1}} {{file2}}
- Compare directories recursively:
diff -r {{directory1}} {{directory2}}
- Compare directories, only showing the names of files that differ:
diff -rq {{directory1}} {{directory2}}