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

Sortix volatile manual

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

HOSTNAME(1) General Commands Manual HOSTNAME(1)

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)

March 19, 2017 Sortix 1.1.0-dev
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