Process and port usage in Linux
Use lsof
, fuser
, ss
, pgrep
, pstree
, ps
, htop
, etc. to find process and port usage in Linux.
Use lsof
, fuser
, ss
, pgrep
, pstree
, ps
, htop
, etc. to find process and port usage in Linux.
The Test-NetConnection cmdlet is great and verbose but too slow if the remote port to check is not opened. This is due to its timeout setting and cannot be modified. In this port, I will show you a custom function that leverages the power of System.Net.Sockets.TcpClient to accelerate the port test.