:: krowemoh

Thursday | 13 NOV 2025
Posts Links Other About Now

previous
next

2023-03-04
IP Address

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