diffs-0.1.1
توضیحات
Command output changes monitor
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | diffs-0.1.1 |
| نام | diffs |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | igrek51 |
| ایمیل نویسنده | igrek51.dev@gmail.com |
| آدرس صفحه اصلی | https://github.com/igrek51/diffs |
| آدرس اینترنتی | https://pypi.org/project/diffs/ |
| مجوز | MIT |
# diffs
[](https://github.com/igrek51/diffs)
[](https://pypi.org/project/diffs)
**diffs** monitors for any changes in arbitrary shell command output between the initial state and the current output.
# Installation
```shell
pip3 install diffs
```
Python 3.6 (or newer) is required.
# Usage
```bash
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:
```bash
$ 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`

نیازمندی
| مقدار | نام |
|---|---|
| - | colorama |
| - | nuclear |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.0 | Python |
نحوه نصب
نصب پکیج whl diffs-0.1.1:
pip install diffs-0.1.1.whl
نصب پکیج tar.gz diffs-0.1.1:
pip install diffs-0.1.1.tar.gz