HOSTNAME(1)
π HOSTNAME(1) β the girlies' guide to hostname π
okay so bestie, welcome to hostname from the General Commands Manual section. this little icon does exactly one (1) job and it does it flawlessly: it tells you what your machine is called, or renames it. that's it. that's the whole vibe. π
β¨ NAME β¨
hostname β display or set the system's host name. yes literally that. main character behaviour only.
πΈ SYNOPSIS πΈ
hostname [OPTION]... [HOSTNAME]
π¦ DESCRIPTION π¦
Display or set the system's host name. no cap. that's the whole description. sometimes you look at it and it's like "hey what's your name" and sometimes you're like "hi bestie, your name is THIS now." both are valid. π₯
π OPTIONS π
-d,--domainβ show the name of the DNS domain, if it's possible to figure it out-i,--ip-addressβ show the network address(es) of the host-f,--fqdnβ show the FQDN (Fully Qualified Domain Name) β and btw this is the default β¨-s,--shortβ show the short hostname (aka the bit before the first dot), if possible-h,--helpβ print help π«Ά-V,--versionβ print version[host]β the host you want to set it to, if you feel like changing things up
β VERSION β
v(uutils coreutils) 0.12.0
π EXAMPLES π
Show current host name:
hostname
Show the network address of the host name:
hostname [-i|--ip-address]
Show the FQDN (Fully Qualified Domain Name):
hostname [-f|--fqdn]
Set current host name:
hostname new_hostname
hiii, quick head's up π«Ά β the examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail. π she's doing her best fr fr.
and that's the page bestie, we ate that πβ¨
this was HOSTNAME(1) from uutils coreutils, version 0.12.0 β dated 2026-09-25. luv u, go name a machine or something ππ
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms