Linux

Bash script for checking public IP, your ISP and current distro from linux shell

Some useful script found online for checking public ip, isp and current linux distro.

ISP

#Check for ISP
echo -n "Your ISP is (whoismyisp.org): " 
curl -s https://www.whoismyisp.org | grep -oP '\bisp">\K[^<]+'

 

PUBLIC IP

#Check for public IP
echo -n "Your public IP is (checkip.dyndns.org): " 
curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'

Read More