2014-09-11 11:38:56 +01:00
|
|
|
# netstat
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Displays various networks related information such as open connections, open socket ports etc.
|
2014-09-11 11:38:56 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- List all ports:
|
2014-09-11 11:38:56 +01:00
|
|
|
|
|
|
|
`netstat -a`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- List all listening ports:
|
2014-09-11 11:38:56 +01:00
|
|
|
|
|
|
|
`netstat -l`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- List listening TCP ports:
|
2014-09-11 11:38:56 +01:00
|
|
|
|
2015-12-28 07:48:19 +00:00
|
|
|
`netstat -t`
|
2014-09-11 11:38:56 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Display PID and program names:
|
2014-09-11 11:38:56 +01:00
|
|
|
|
2015-12-28 07:48:19 +00:00
|
|
|
`netstat -p`
|
2014-09-11 11:38:56 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- List information continuously:
|
2014-09-11 11:38:56 +01:00
|
|
|
|
2015-12-28 07:48:19 +00:00
|
|
|
`netstat -c`
|