Thursday | 05 MAR 2026

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