try this for the kernal name:
type man uname to learn the other switches to display other info.
as for to find the ports. Im using Fedora Core 3 and in the start > system tools menu there is network tools. It is a gui for several common network tools. I used the port scan in that scanning 127.0.0.1 to see my ports but can't figure out the name of the command line utility that it is a frontend for.
edit: knew that was going to happen. While i was looking for what cmd line program it was someone else posted before me. lol