SETUP-HOSTNAME(8)
π NAME π
okay so this is setup-hostname(8) from the System Managerβs Manual β the page for setup-hostname, which literally sets the system hostname. bestie, itβs giving βtiny but crucial.β β¨
π SYNOPSIS π
setup-hostname [-h] [HOSTNAME]
π¦ DESCRIPTION π¦
setup-hostname writes HOSTNAME to /etc/hostname. no cap, thatβs the whole main-character move. π«Ά
Hostnames are limited to 255 characters and may only contain letters, digits (0-9), periods (.) and hyphens (-). A hostname must not start with a hyphen or period. thatβs the vibe check, and it is strict. π
If HOSTNAME is given, it is validated and written. If validation fails the script exits with an error. π
Without HOSTNAME, the current hostname is the default and the user is prompted for a value. so itβs like, βhey bestie, what are we naming this thing?β πΈ
β¨ OPTIONS β¨
-hβ display usage information and exit. thatβs it, thatβs the option list, and she ate. π
π FILES π
/etc/hostnameβ system hostname file. This file is read at boot. so yeah, sheβs important. π₯
π EXIT STATUS π
0β success. slay. β¨1β the specified hostname failed validation. π
π SEE ALSO π
go check out hostname(1) and setup-alpine(8) if youβre feeling extra. iykyk. π
π AUTHORS π
Natanael Copa <ncopa@alpinelinux.org> and others. icons only. π
πΈ xoxo, Alpine Linux β 2026-06-09 β setup-hostname(8) out π
π¦ where this page comes from
- alpine 3.24: alpine-conf-doc 3.22.0-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms