Name of the current host

$HOSTNAME contains the name of the current host.

Examples

Print the hostname :

1
echo $HOSTNAME
BashSupport Pro is a Bash IDE with support for $HOSTTYPE – try it now!
© 2020–2022 Joachim Ansorg
Imprint
Privacy Policy
Legal