15 ms·
I aliased ifconfig to this: echo "Local IPs: " ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}' systemd-resolve --status | grep -A 2 S
by nvr219 5y ago
I aliased ifconfig to this:
echo "Local IPs: "
ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}'
systemd-resolve --status | grep -A 2 Servers | sed 's/\ //g'
ip route show
curl --silent ipinfo.io | grep -E '\"ip|hostname|city' | sed 's/\"//g'
Hope this helps