mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 05:56:46 +00:00
Update cheatsheets
This commit is contained in:
6
tldr/cmp
6
tldr/cmp
@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Output info of the first difference: char, line number, bytes, and values:
|
||||
|
||||
`cmp --print-bytes {{path/to/file1}} {{path/to/file2}}`
|
||||
`cmp {{[-b|--print-bytes]}} {{path/to/file1}} {{path/to/file2}}`
|
||||
|
||||
- Output the byte numbers and values of every difference:
|
||||
|
||||
`cmp --verbose {{path/to/file1}} {{path/to/file2}}`
|
||||
`cmp {{[-v|--verbose]}} {{path/to/file1}} {{path/to/file2}}`
|
||||
|
||||
- Compare files but output nothing, yield only the exit status:
|
||||
|
||||
`cmp --quiet {{path/to/file1}} {{path/to/file2}}`
|
||||
`cmp {{[-s|--quiet]}} {{path/to/file1}} {{path/to/file2}}`
|
||||
|
||||
Reference in New Issue
Block a user