CLI Knowledge Base

Use hostname to get IP address

hostname -I |awk '{print $1}'