hostname
Displays or sets the system hostname.
Syntax
$hostname [NAME]
Examples
Examples
$hostname
Examples
$hostname newhostname
Warnings
Requires root privileges
Typical use cases
hostname
hostname NEWNAME
Note
Simple tool to display or set the hostname.
Export