src/world/bin/hostname/man/hostname.1

33 lines
599 B
Groff

.Dd 2020-10-29
.Dt HOSTNAME 1
.Os HitchHiker Linux
.Sh NAME
.Nm hostname
.Nd set or print the name of current host system
.Sh SYNOPSIS
.Nm
.Op Fl s
.Op Ar name-of-host
.Sh DESCRIPTION
.Nm
prints the name of the current host.
The super-user can set the host name by supplying an argument.
.Sh OPTIONS
.Bl -tag -width flag
.It Fl s
Removes any domain information from the printed name.
.El
.Sh SEE ALSO
.Xr domainname 1 ,
.Xr gethostname 3 ,
.Xr sethostname 3
.Sh EXIT STATUS
.Ex -std hostname
.Sh Author
Written by the JeanG3nie for HitchHiker Linux
.Sh HISTORY
The
.Nm
utility appeared in
.Bx 4.2 .