← Useful Tips
Linux / WSLLinux

diff -u old.py new.py: Show a readable unified diff between two files

Use diff -u old.py new.py to show a readable unified diff between two files. It is especially handy when you live in terminals and repeat long commands.

diff -u old.py new.py

Why it helps

Use diff -u old.py new.py to show a readable unified diff between two files. It is especially handy when you live in terminals and repeat long commands.

How to use it

  1. Open the relevant app or terminal.
  2. Use the shortcut or command above in the relevant context.
  3. Check the result; for commands that change data, test on a small example first.
People also search for
diff -u old.py new.py: Show a readable unified diff between two filesdiff -u old.py new.pyshow a readable unified diff between two fileshow to show a readable unified diff between two filesLinux / WSL show a readable unified diff between two files

Related tips