| 1 |
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2. |
| 2 |
.TH HOSTNAME "1" "April 2026" "GNU inetutils 2.8" "User Commands" |
| 3 |
.SH NAME |
| 4 |
hostname \- show or set system host name |
| 5 |
.SH SYNOPSIS |
| 6 |
.B hostname |
| 7 |
[\fI\,OPTION\/\fR...] [\fI\,NAME\/\fR] |
| 8 |
.SH DESCRIPTION |
| 9 |
Show or set the system's host name. |
| 10 |
.TP |
| 11 |
\fB\-a\fR, \fB\-\-aliases\fR |
| 12 |
alias names |
| 13 |
.TP |
| 14 |
\fB\-d\fR, \fB\-\-domain\fR |
| 15 |
DNS domain name |
| 16 |
.TP |
| 17 |
\fB\-f\fR, \fB\-\-fqdn\fR, \fB\-\-long\fR |
| 18 |
DNS host name or FQDN |
| 19 |
.TP |
| 20 |
\fB\-F\fR, \fB\-\-file\fR=\fI\,FILE\/\fR |
| 21 |
set host name or NIS domain name from FILE |
| 22 |
.TP |
| 23 |
\fB\-i\fR, \fB\-\-ip\-addresses\fR |
| 24 |
addresses for the host name |
| 25 |
.TP |
| 26 |
\fB\-s\fR, \fB\-\-short\fR |
| 27 |
short host name |
| 28 |
.TP |
| 29 |
\fB\-y\fR, \fB\-\-yp\fR, \fB\-\-nis\fR |
| 30 |
NIS/YP domain name |
| 31 |
.TP |
| 32 |
\-?, \fB\-\-help\fR |
| 33 |
give this help list |
| 34 |
.TP |
| 35 |
\fB\-\-usage\fR |
| 36 |
give a short usage message |
| 37 |
.TP |
| 38 |
\fB\-V\fR, \fB\-\-version\fR |
| 39 |
print program version |
| 40 |
.PP |
| 41 |
Mandatory or optional arguments to long options are also mandatory or optional |
| 42 |
for any corresponding short options. |
| 43 |
.SH AUTHOR |
| 44 |
Written by Debarshi Ray. |
| 45 |
.SH "REPORTING BUGS" |
| 46 |
Report bugs to <bug\[email protected]>. |
| 47 |
.SH COPYRIGHT |
| 48 |
Copyright \(co 2026 Free Software Foundation, Inc. |
| 49 |
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. |
| 50 |
.br |
| 51 |
This is free software: you are free to change and redistribute it. |
| 52 |
There is NO WARRANTY, to the extent permitted by law. |
| 53 |
.SH "SEE ALSO" |
| 54 |
The full documentation for |
| 55 |
.B hostname |
| 56 |
is maintained as a Texinfo manual. If the |
| 57 |
.B info |
| 58 |
and |
| 59 |
.B hostname |
| 60 |
programs are properly installed at your site, the command |
| 61 |
.IP |
| 62 |
.B info hostname |
| 63 |
.PP |
| 64 |
should give you access to the complete manual. |