netstat -tnlp will also give the same output and it works on sun/aix as well :)
also on another note nmap is really cool tool to know port/state/service of any process. you can also scan another machine open ports via this. Best Regards --N On Tue, Aug 10, 2010 at 9:20 AM, Tha.Suresh <[email protected]> wrote: > Find out what ports are open on Linux > > Here a quick tip on how to find out what ports are open on your Linux > computer without using a port scanner. > > $ netstat -anp --tcp --udp | grep LISTEN > > -- > Regards, > Tha.Su > http://thasulinux.wordpress.com > > -- > l...@iitd - http://tinyurl.com/ycueutm > -- l...@iitd - http://tinyurl.com/ycueutm
