User Tools

Site Tools


linux:ubuntu_diff

Ubuntu Diff Compare Files Side By Side

diff -y file1 file2
diff -ty file1 file2
diff -ty file1 file2 |cdiff
sdiff file1 file2 |cdiff

Show Only Difference

diff -y - --suppress-common-lines file1 file2 |cdiff

Use Full Teminal

diff -y -W $(tput cols) file1 file2 |cdiff

Note: cdiff requires colordiff to be installed.

linux/ubuntu_diff.txt · Last modified: 27/04/2023 13:58 by Allan