mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 11:46:00 +02:00
Add tldr page for diff
This commit is contained in:
parent
5bae3ffdba
commit
80d1f1d2c4
1 changed files with 23 additions and 0 deletions
23
common/diff.md
Normal file
23
common/diff.md
Normal 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}}`
|
Loading…
Add table
Reference in a new issue