This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # to list all ports that are used | |
| sudo netstat -ntlp | grep LISTEN | |
| # you can obtain a specific port using the following command | |
| sudo netstat -ntlp | grep :8080 | |
| # when you execute the command above you will see something like that | |
| tcp 0 0 0.0.0.0:27370 0.0.0.0:* LISTEN 4394/skype | |
| tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN 2216/dnsmasq | |
| tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 4912/cupsd |