hostname(1)
β¨ 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,--filefile β 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
- debian trixie: inetutils-tools 2:2.6-3+deb13u3
- ubuntu questing: inetutils-tools 2:2.6-1ubuntu3
- ubuntu questing: inetutils-tools 2:2.6-1ubuntu3.2
- ubuntu resolute: inetutils-tools 2:2.7-2ubuntu1
- ubuntu resolute: inetutils-tools 2:2.7-2ubuntu1.1
- ubuntu stonking: inetutils-tools 2:2.8-2ubuntu1
- Copyright Β© 2015 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms