:: krowemoh

Thursday | 26 DEC 2024
Posts Links Other About Now

previous
next

IP Address

2023-03-04

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