cheatsheets devlog projects search

ip-addr.md

IP Address

2023-03-04 1

I wish there was a simple command to get all the interfaces and their IPs but everything seems too verbose. Maybe its better on a newer version of linux.

Currently I like the following:

ip route get 1 | head -n 1 | cut -d' ' -f7