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