Get IP using Bash
To get the IP address of your Linode, you can use the following command:
ip addr show eth0 | grep inet | awk '{print $2}' | cut -d/ -f1
ping -c 1 $HOSTNAME
To get the IP address of your Linode, you can use the following command:
ip addr show eth0 | grep inet | awk '{print $2}' | cut -d/ -f1
ping -c 1 $HOSTNAME