hostname

This diagnostic command prints the name of the current host.

Syntax

hostname