Did you know you can ping all the hosts listed in the /etc/hosts file with one command? Do it with
for i in `grep -v “^#” /etc/hosts | awk ‘{print $1}’`; do ping -c 1 -w 2 $i ; echo; done
Did you know you can ping all the hosts listed in the /etc/hosts file with one command? Do it with
for i in `grep -v “^#” /etc/hosts | awk ‘{print $1}’`; do ping -c 1 -w 2 $i ; echo; done