1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 07:18:29 +01:00
tldr/pages/common/diff.md

24 lines
424 B
Markdown
Raw Normal View History

2014-02-02 13:26:10 +01:00
# 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}}`
2015-10-22 09:31:52 +02:00
- Compare directories, only showing the names of files that differ
2014-02-02 13:26:10 +01:00
`diff -rq {{directory1}} {{directory2}}`