how can i check if port is busy or if someone is using it ?

Hello
i have application that using ports , how can i check if the port im using is not captured by any applications?

use,

netstat -a | grep <portno>

check the port status above whether it is listening, established or ....