Digital Marketing

lsof output numeric ports

According to man lsof, -P inhibits the conversion of port numbers to port names for network files.

[ec2-user@ip-172-16-7-193 ~]$ sudo lsof -i | grep java
java       4031 ec2-user   43u  IPv6  25444      0t0  TCP *:webcache (LISTEN)
java       4031 ec2-user  351u  IPv6  30785      0t0  TCP localhost:mxi (LISTEN)
[ec2-user@ip-172-16-7-193 ~]$ sudo lsof -i -P| grep java
java       4031 ec2-user   43u  IPv6  25444      0t0  TCP *:8080 (LISTEN)
java       4031 ec2-user  351u  IPv6  30785      0t0  TCP localhost:8005 (LISTEN)

Comments

Popular posts from this blog

Make online money from the Internet