mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Added diff cheatsheet
This commit is contained in:
parent
437f191bf7
commit
3e75a55491
1 changed files with 20 additions and 0 deletions
20
cheatsheets/diff
Normal file
20
cheatsheets/diff
Normal file
|
@ -0,0 +1,20 @@
|
|||
# To view the differences between two files:
|
||||
diff -u version1 version2
|
||||
|
||||
# To view the differences between two directories:
|
||||
diff -ur folder1/ folder2/
|
||||
|
||||
# To ignore the white spaces:
|
||||
diff -ub version1 version2
|
||||
|
||||
# To ignore the blank lines:
|
||||
diff -uB version1 version2
|
||||
|
||||
# To ignore the differences between uppercase and lowercase:
|
||||
diff -ui version1 version2
|
||||
|
||||
# To report whether the files differ:
|
||||
diff -q version1 version2
|
||||
|
||||
# To report whether the files are identical:
|
||||
diff -s version1 version2
|
Loading…
Reference in a new issue