hostname(1)

πŸ“¦
version 2.8 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ hostname β€” show or set the system host name ✨

okay bestie, welcome to hostname(1) from the User's Reference Manual β€” yes, that manual, the one your sysadmin keeps yelling about. it's giving "who am I, really?" but for your computer. 🫢


🌸 SYNOPSIS 🌸

hostname [option ...] [name]

πŸ’– DESCRIPTION πŸ’–

literally so simple, no cap: it shows the system's host name, or sets it if you pass a name. that's the whole vibe. one job. ate. πŸ’…


✨ OPTIONS ✨

  • -a, --aliases β€” also show the aliases for the host name. the whole squad, not just the main character πŸ‘‘
  • -d, --domain β€” show the DNS domain name 🌐
  • -f, --fqdn, --long β€” show the DNS host name, aka the FQDN. the full government name, no nicknames 😭
  • -F, --file file β€” set the host name or NIS domain name from file. reading it from a file instead of the command line, very demure, very mindful πŸ“„
  • -i, --ip-addresses β€” show the addresses for the host name. your fave's digits, but make it IPs πŸ”₯
  • -s, --short β€” show the short host name. just the first name, no last name, we're keeping it casual πŸŽ€
  • -y, --yp, --nis β€” show the NIS/YP domain name. old school but we respect the elders 🧚
  • -?, --help β€” give this help list. when you're lost, ask for directions bestie πŸ™ˆ
  • --usage β€” give a short usage message. the tl;dr of the tl;dr ⭐
  • -V, --version β€” print program version. who even are you, program? πŸ¦‹

and that's the whole page, babe β€” every flag accounted for, nothing skipped, we do NOT leave options behind in this house πŸ’œ

made by the GNU Network Utilities, dated February 1, 2019 β€” so like, vintage, but still iconic. mwah, go check your hostname, it's probably cute. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from