O'Reilly logo

Linux Pocket Guide, 2nd Edition by Daniel J. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required