[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: list port are listen



Quoting Michael Schurter <michael@synthesyssolutions.com>:

pedro lopez wrote:
how i do?
i need see what services are runing, how i can see de port listen on may systen? and new on linux.

netstat is the command you're looking for. Check out "netstat -h" for a list of options. "netstat -l" or "netstat -lt" are probably what you're most interested in. If you prefer numeric port numbers to service names, add a "--numeric-ports" to the end.

Also, the "ps aux" command is commonly used to list running programs. It won't give you network information, but very useful none the less.

Michael Schurter

I personally like `netstat -anput`, which lists numeric addresses and port numbers for all programs listening on TCP or UDP ports, along with the program/PID for each entry.

-Roberto

--
Roberto C. Sanchez
http://familiasanchez.net/~roberto



Reply to: