Checking for the availability of the ports is one of the common requirements many of us have before installing or configuring software on our machines. Here is simple command which lets you know whether a particular port is used by any another process or not.
netstat -ano | find “8086”
In the above command, ‘8086’ is the port number. If the port is occupied by any other process, it will show the process id of that particular process. Otherwise, if the requested port is free, then the command will not show anything (just blank) as part of the response.