23 July 2018

netstat cheat sheet

Para ver conexiones tcp:

netstat -s -P tcp

ver un puerto en específico:

netstat –nap | grep puerto_admin


netstat -an | grep -i 7001


A number of useful tools which can be used are netstat (to determine the number of sockets in TIME_WAIT state, for example by using, netstat –a | grep TIME_WAIT | wc –l) or iostat (to determine disk I/O on the operating system, for example, iostat 5 5). Note that iostat is part of the sysstat package, which can be installed by using: yum -y install sysstat.  
Networking linux:



My Blog List

Blog Archive


The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.