Sortix
Sortix Download Manual Development Source Code News Blog More
current nightly

Sortix nightly manual

This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.

NAME

hostname — initial hostname

SYNOPSIS

/etc/hostname

DESCRIPTION

The hostname file is read on boot by init(8) and is used as the system hostname. No hostname is set if the file is missing and the hostname remains the kernel default.

FORMAT

The file must contain a valid hostname and no whitespace on a single line.

FILES

/etc/hostname
System hostname.

EXAMPLES

dragon

SEE ALSO

hostname(1), gethostname(2), sethostname(2), init(8)
Copyright 2011-2025 Jonas 'Sortie' Termansen and contributors.
Sortix's source code is free software under the ISC license.
#sortix on irc.sortix.org
@sortix_org