Find listening ports on RHEL5
I have to find and put into a file the following:
all ports that are less than 1024 that are listening in /etc/services.
I have tried several things and cannot get the intended result.
Can anyone help?
Software
I have to find and put into a file the following:
all ports that are less than 1024 that are listening in /etc/services.
I have tried several things and cannot get the intended result.
Can anyone help?
by seanferd
Do they work, but you simply did not pipe output to a file?
netstat --listen
RH suggests netstat -an
or use nmap
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/security-guide/s1-server-ports.html
Although it would probably be best to check the RHEL5 docs on your installation, or here http://www.redhat.com/rhel/
(As RHL9 was the last non-enterprise RHL before it changed to Fedora, so it is a bit old.)
This discussion is closed to new replies.
Sort by Trending