LINUX / UNIX ENGINEERING

Linux Engineering Terminal

Type a Linux command and learn what it does, the operator trick behind it, a simple use case, and the DBA angle. This is a safe browser simulation — nothing is executed on a server.

INTERACTIVE COMMAND EXPLORER
NETWORK
SAFE SIMULATION Nothing is executed on a server.
satya@dbresilience:~$ hostname -I
192.0.2.10 2001:db8::10
satya@dbresilience:~$
Enter run / history Tab complete
READ-ONLY NETWORK

Show host IP addresses

hostname -I shows host addresses. A host can have multiple addresses.

OPERATOR TRICK

Use ip addr when you need interface-by-interface detail. Uppercase -I is not the same option as lowercase -i.

SIMPLE USE CASE

A database connection works on one network path but not another. First establish which addresses are configured.

DBA ANGLE

Useful before checking listeners, PostgreSQL connectivity, DB2 Linux HADR paths, replication, DNS, or firewalls.