News for hackers. Stuff that matters.
Re:Show HN: Oh-heck, a terminal command for when you forget ... by nvr219 on Friday March 18, 2022 @06:15PM (#30728230)
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

There are no comments on this comment yet.