I am very new to unix. How can I check that a particular port is free or used right now ?
This question is related to
unix
Try (maybe as root)
lsof -i -P
and grep the output for the port you are looking for.
For example to check for port 80 do
lsof -i -P | grep :80
Source: Stackoverflow.com