Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ping a port linux

ping ip -p port
Comment

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
Comment

ping port linux

telnet IP PORT
Comment

PREVIOUS NEXT
Code Example
Shell :: github actions set ssh key 
Shell :: how to remove a package from arch linux 
Shell :: pulls OS name and version linux 
Shell :: haskell change version 
Shell :: check active ssh users in linux 
Shell :: git change rebase to merge 
Shell :: check user shell in linux 
Shell :: tree command 
Shell :: see output of a running processes linux 
Shell :: linux install android sdk 
Shell :: how to install virtualbox in ubuntu 18.04 
Shell :: bash split a word into characters 
Shell :: tomcat shutdown script 
Shell :: clipboard manager linux unity 
Shell :: undo git commit and keep changes 
Shell :: delete a github repository using curl 
Shell :: setting docker as a non root user 
Shell :: Bluetooth problem Linux 
Shell :: how to delete evicted pod in kubernetes: 
Shell :: how to download 
Shell :: git revert all commits to pervious commit 
Shell :: docker load 
Shell :: batch escape character 
Shell :: install anaconda 
Shell :: git compare two branches 
Shell :: change user password on mac terminal 
Shell :: git force lf 
Shell :: cent os GUI install 
Shell :: git submodule add 
Shell :: powershell output array as table 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =