netstat has some very neat features we could make use of more often! Here is 5.
Note: examples here may not apply to BSD based systems
1. The classic: list local listening TCP/UDP ports and their process:
$ sudo netstat -tulpn| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title</title> | |
| </head> | |
| <body> | |
| <form method="post"> | |
| {{ form.hidden_tag() }} | |
| {{ form.example }} |