Saturday, October 3, 2020

Command to show listening ports within Linux

Below is a command to show listening ports within Linux.

sudo netstat -plnt | grep "LISTEN" | awk '{print $4 "\t" $7}'

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.