Powered By Blogger

Wednesday, March 25, 2009

Command to check open ports

/usr/local/bin/lsof -P -z -i 2>/dev/null grep global grep LISTEN grep -v localhost

Note: There is a pipe before grep and after null. Somehow it is not printing in the output

No comments:

Post a Comment

Welcome to the UNIX world