Linux

How to check if a certain port is being used?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

One of the following would work:

netstat -tnlp | grep
lsof -i -n -P | grep