How do I check if a port is in use on Linux?

Originally published at: https://www.cyberciti.biz/faq/how-do-i-check-if-a-port-is-in-use-on-linux/

I am a new Linux system user. I need to find out which process is listening on a port on Linux using the command line. How do you find out which process is listening on a port on Linux operating systems?

Just gothrough netstat command and lsof command in man pages

As well as the netstat command (you’ll probably need netstat -an) there’s also the ss command which can be faster on returning information (try out ss -tnlp).

All the best and good luck.