Find out your router’s external IP address using the Linux command line
To Find Router external IP.Using the following commands we can see our router external IP address
without curl
#wget -O - -q icanhazip.com
with curl
#curl ifconfig.me
#curl icanhazip.com
#curl -s 'http://checkip.dyndns.org' | sed 's/.*Current IP Address: \([0-9\.]*\).*/\1/g'
TO see Linux memory usage in real-time
If you want to display your memory usage in real-time, do a
#watch -d "free -mt"
It will display used and free memory every two seconds.
To Find Router external IP.Using the following commands we can see our router external IP address
without curl
#wget -O - -q icanhazip.com
with curl
#curl ifconfig.me
#curl icanhazip.com
#curl -s 'http://checkip.dyndns.org' | sed 's/.*Current IP Address: \([0-9\.]*\).*/\1/g'
TO see Linux memory usage in real-time
If you want to display your memory usage in real-time, do a
#watch -d "free -mt"
It will display used and free memory every two seconds.