A lot of times you want to know what program is listening on a certain port. Do the following: netstat -a
lsof -i proto:port,port e.g. lsof -i tcp:25,21 lsof -p processnumber open files of a certain process.lsof -r repeats the command in an endless loopfuser -n proto port e.g. fuser -n tcp 21