Horje
ping a port linux Code Example
ping a port linux
ping ip -p port
linux ping a port
# Use the below command in your terminal
# No requirments are needed
(echo >/dev/tcp/{host}/{port}) &>/dev/null && echo "open" || echo "close"

# An example below
(echo >/dev/tcp/10.20.20.21/27017) &>/dev/null && echo "open" || echo "close"

# if open then it will return "open"
# if closed then it will return "close"
# if you can't connect to it then it will freeze, use ctrl+c




Shell

Related
how to update a local git repository Code Example how to update a local git repository Code Example
how to decompress gzip file in linux Code Example how to decompress gzip file in linux Code Example
update git repo local Code Example update git repo local Code Example
No module named 'psycopg2' Code Example No module named 'psycopg2' Code Example
install solana linux Code Example install solana linux Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8