Linux Posts, Programming Posts, Atmega Posts and others.
Alsohostname -i
One moreifconfig | grep "inet addr" | head -n 1 | cut -d: -f 2 | awk '{ print $1 }'
Also
ReplyDeletehostname -i
One more
ReplyDeleteifconfig | grep "inet addr" | head -n 1 | cut -d: -f 2 | awk '{ print $1 }'