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

Sortix cross-nightly manual

This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.

NAME

hostname — write or set system hostname

SYNOPSIS

hostname [-s] [hostname]

DESCRIPTION

hostname writes the system hostname, or sets the system hostname to hostname if specified.
The options are as follows:
-s, --short
Write the hostname up to but not including the first period.

EXIT STATUS

hostname will exit 0 on success and non-zero otherwise.

SEE ALSO

gethostname(2), sethostname(2), hostname(5)
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