1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-06 12:46:02 +02:00

Merge pull request #67 from britter/diff-page

Add tldr page for diff
This commit is contained in:
Romain Prieto 2014-02-02 05:26:18 -08:00
commit 6849c590a6

23
common/diff.md Normal file
View file

@ -0,0 +1,23 @@
# 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}}`