Command output changes monitor
diffs monitors for any changes in arbitrary shell command output between the initial state and the current output.
pip3 install diffs
Python 3.6 (or newer) is required.
CMD output is stored at the beginning.
Then the command is run again periodically and the output is compared against the initial output.
If there are differences, they are shown in the standard diff format. The unchaged lines are not shown.
Show how many packets have been sent since the script has been started:
diffs ifconfig wlp2s0
Find new applications opening network ports (shows only changes between the initial state):
diffs sudo netstat -tulpn
Monitor changes in a file:
$ diffs cat /etc/resolv.conf
Difference between starting date and the current date:
Finding newly spawned processes:
diffs ps a -o pid,cmd
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.