Ravi Sir's Cards › AWS
diff vs comm
This comparison card contrasts diff and comm. diff is described as any two files. comm is described as two sorted lists. The card pairs diff with config review, and comm with server lists.
Read card text
What this card says
Input
diff
Any two files.
comm
Two sorted lists.
Key points
Shows line changes as a patch.
Shows only-1, only-2, both.
Example
diff -u a b
Use when
Config review.
Server lists.