> Hi all,
>> I would normally just use ps to see if telnetd, sshd, httpd etc are running
> on a server.
>> Is there any nice way to list all ports accepting connections on a machine?
> (sort of like an internal port scan I guess...)
>> Or something that prints out the services at the current runlevel. I guess
> I could write a script, but I was wondering if there was some dodgy switch
> to ps or some other util that might do it for me.
>> (p.s. SuSE 7.2 and DGUX 4.0 - no gui)
To find all tcp services listening on your mahcine:
netstat -ta | sed -ne '/LISTEN[ ]*$/p'
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!