diff
diff is a Linux command in the Text Processing category, rated beginner difficulty. Compares two files line by line and shows the differences. The syntax is diff [options] file1 file2. Key options and parameters: file1, file2 — files to compare. It returns line differences. A practical example: diff file1.txt file2.txt diff -u file1.txt file2.txt # Unified format (for patches) diff -r dir1 dir2 # Recursive directory compare diff -q file1.txt file2.txt # Only report if different A close relative is grep, which searches for patterns in files using regular expressions. A close relative is sed, which stream editor for filtering and transforming text. A close relative is awk, which powerful text processing language. Ideal for column-based data and reports. More about this category: Linux text processing commands — grep, sed, awk, sort, cut, tr, and more. Search, filter, transform, and format text content. Related Text Processing commands: grep, sed, awk, sort, uniq, wc, cut, tr.