[Level 2] Check the port is used by process on Ubutun

If you want to check a port which is used by what process.
You can use the command to get information:

# netstat -an -tap | grep :::443
tcp6       0      0 :::443                  :::*                    LISTEN      31462/java
# ps -fp 31462
root     31462     1  7 10:46 pts/1    00:00:43 /opt/java/jre//bin/java ...

Wish this helps.

regards,
Stanley Huang

Comments

Popular posts from this blog

[Level 2] Shell Interactive With Zenity Episode 5 -- list

[Level 2] iif in Python