Originally published January 7, 2018 @ 2:50 pm

Let’s say you run the same command on two remote servers and you want to compare the output. Here’s a quick example:

I suggest using “vimdiff” for a more easy-to-read layout:


Here’s another vimdiff example that ignores white spaces and uses a small script to auto-close in three seconds. The /tmp/vimscript looks like this:

And the whole command is this:

This may be useful if you need to do a quick visual comparison of multiple files. For example, find *.conf in /etc on server1 and compare them to equivalent files on server2: