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