Tuesday, March 9, 2010

Viewing Active ports on Linux / Ubuntu

To view all the active ports on Linux and view the current state -

If you have sudo Access you can provide p option

p option will only provide program name – this is not mandatory

netstat -ntulp

image

Without sudo or root access, you can run with out p option

netstat -ntul

image