1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Add hostname(1).

This commit is contained in:
Jonas 'Sortie' Termansen 2017-03-19 17:00:08 +01:00
parent 4ffd6f5e20
commit dbf4bcd6cf
6 changed files with 164 additions and 0 deletions

28
hostname/hostname.1 Normal file
View file

@ -0,0 +1,28 @@
.Dd March 19, 2017
.Dt HOSTNAME 1
.Os
.Sh NAME
.Nm hostname
.Nd write or set system hostname
.Sh SYNOPSIS
.Nm hostname
.Op Fl s
.Op Ar hostname
.Sh DESCRIPTION
.Nm
writes the system hostname, or sets the system hostname to
.Ar hostname
if specified.
.Pp
The options are as follows:
.Bl -tag -width "12345678"
.It Fl s , Fl \-short
Write the hostname up to but not including the first period.
.El
.Sh EXIT STATUS
.Nm
will exit 0 on success and non-zero otherwise.
.Sh SEE ALSO
.Xr gethostname 2 ,
.Xr sethostname 2 ,
.Xr hostname 5