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 :: install firebase npm 
Shell :: command to upgrade upgradable packages on Ubuntu 
Shell :: git hard reset upstream 
Shell :: git hard reset to commit id 
Shell :: add desktop entry ubuntu 
Shell :: rust install 
Shell :: how to stop apache2 service in kali linux 
Shell :: remove global configuration in git 
Shell :: accessing settings through cmd 
Shell :: wget download to specific directory 
Shell :: install hackertyper on linux mint 
Shell :: flutter doctor android licenses exception in thread main java.lang.noclassdeffounderror 
Shell :: files changed in a commit 
Shell :: dev/random dev/urandom bash 
Shell :: ignore headers in linux sort 
Shell :: git config global username 
Shell :: ubuntu watch log file command 
Shell :: postgresql status ubuntu 
Shell :: how to restart network manager in ubuntu 
Shell :: target lcobucci jwt parser is not instantiable while building laravel passport 
Shell :: discord on linux 
Shell :: centos apache certbot 
Shell :: git default branch name config 
Shell :: how to setup git locally with ssh 
Shell :: bring job number to foreground linux 
Shell :: terminal change directory location to specific location 
Shell :: how to download utorrent in kali linux 
Shell :: how to install webpack 
Shell :: ngitignore 
Shell :: can linux terminal crash 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =