Host Information

uname

Print basic system information.

hostname

Print the system’s hostname.

dnsdomainname

Same as hostname -d.

domainname

Same as hostname -y.

nisdomainname

Same as hostname -y.

ypdomainname

Same as hostname -y.

ip

Set and display network interface information.

ifconfig

Older command to set and display network interface information.

Every Linux machine (or host) has a name, a network IP address, and other properties. Here’s how to display this information.

Get Linux Pocket Guide, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.