This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
linux:sysadmin [2018/07/24 16:56] mstraub [/etc/crontab] |
linux:sysadmin [2020/07/24 13:34] mstraub [Check Open Ports & Connections] |
||
---|---|---|---|
Line 677: | Line 677: | ||
<code bash> | <code bash> | ||
netstat -a # print open & listening internet connections and Unix domain sockets | netstat -a # print open & listening internet connections and Unix domain sockets | ||
- | netstat -a -t # print only tcp connections (-u for udp) | + | netstat -a -t -p # print only tcp connections (-u for udp) and the associated pid |
netstat -s # print statistics about e.g. nr of received packets | netstat -s # print statistics about e.g. nr of received packets | ||
netstat -r # print the kernel routing table | netstat -r # print the kernel routing table |