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