4 examples for diff
# Show the difference between two files without creating temporary files diff <(sort file1) <(sort file2)
# Show the difference between two directories, ignoring .DS_Store files diff -rx .DS_Store DIR1 DIR2
# diff remote files over SSH ssh user@remote_host "cat remote_file.txt" | diff - local_file.txt