Print IP addresses assigned to the local host.
Section: Interfaces and Addresses
Show host IPs
bash
bash
hostname -IExplanation
Print IP addresses assigned to the local host.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Interfaces and Addresses