Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux terminal check internet connection

# method 1 ping
ping google.com

# method 2 curl
curl -I https://linuxhint.com/

# method 3 list adapters
ip a

# check default gateway
ip r
 
PREVIOUS NEXT
Tagged: #linux #terminal #check #internet #connection
ADD COMMENT
Topic
Name
6+1 =