linux monitor outgoing https requests 1

linux monitor outgoing https requests

$ watch -n1 lsof -i TCP:80,443

Here is what the above code is Doing:
1. We’re using the subprocess module to run the lsof command.
2. We’re using the -n1 flag to tell watch to run the command every 1 second.
3. We’re using the -i flag to tell lsof to only show us the network connections.
4. We’re using the TCP:80,443 flag to tell lsof to only show us the connections to ports 80 and 443.

Similar Posts