diffs
diffs monitors for any changes in arbitrary shell command output between the initial state and the current output.
Installation
pip3 install diffs
Python 3.6 (or newer) is required.
Usage
diffs CMD
The initial 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.
Examples
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:
diffs date
Finding newly spawned processes:
diffs ps a -o pid,cmd
Metadata
Release files for diffs 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| diffs-0.2.0.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| diffs-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.9 kB
Release files / diffs-0.2.0.tar.gz
| Download URL | diffs-0.2.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce1513ff88d061d02eb65273158285975ebed57ebb7f329a3cb727625620438e
|
|
BLAKE2b-256 checksum How to use checksums |
5f17327147e74c5fd0dd2db246e6ea2abf33985a5b603a1b9fe563c12fa8946d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / diffs-0.2.0-py3-none-any.whl
| Download URL | diffs-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
111000faecec3c791f42210f3bb34c96e2eabd9398b5c90d9db289d8ab79e807
|
|
BLAKE2b-256 checksum How to use checksums |
76051c40d9ca602c6a77d0e3461d959d940587c9f970335b797b301c23a5d551
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|