The netstat command includes a new –u option. This option provides information about users and processes on the system that are using specific ports. Use the netstat –u command to display the user, process ID, and the program that created the network endpoint or the program that currently controls the network endpoint.
To produce better alignment of the netstat command output, you can specify the –n option with the –u option. For more information and detailed examples, see the netstat (1M) man page.