Difference between revisions of "Shells ports"

From Insomnia 24/7 Wiki
Jump to: navigation, search
imported>Wikiadmin
imported>Wikiadmin
Line 8: Line 8:
 
There is a custom made command available from your shell to check which ports are in use.<br />
 
There is a custom made command available from your shell to check which ports are in use.<br />
 
This is the 'port' command.
 
This is the 'port' command.
 +
</p>
 +
<p>
 +
Usage of the port command:
 +
:port -a will show you the available ports
 +
:port -s <port> will check if that port is available to you
 +
 
</p>
 
</p>
 
<p>
 
<p>

Revision as of 18:20, 17 September 2010

Open ports

As a shell user there is a range of ports you may use to run services, this range is ports 5000 to 5500. (Both tcp and udp)

port command

There is a custom made command available from your shell to check which ports are in use.
This is the 'port' command.

Usage of the port command:

port -a will show you the available ports
port -s <port> will check if that port is available to you

Examples of how to use the port command:
Find out if port 5001 is in use:

 coolfire@Lydia:~$ port -s 5001
 (No info could be read for "-p": geteuid()=1000 but you should be root.)
 State for port 5001: In use
 Process info:
 -
 Done.
 coolfire@Lydia:~$