1 HOSTNAME(1) User Commands HOSTNAME(1)
2
3
4
5 NAME
6 hostname - set or print name of current host system
7
8 SYNOPSIS
9 /usr/bin/hostname [name-of-host]
10
11
12 DESCRIPTION
13 The hostname command prints the name of the current host, as given
14 before the login prompt. The super-user can set the hostname by giving
15 an argument.
16
17 SEE ALSO
18 uname(1), attributes(5)
19
20
21
22 September 14, 1992 HOSTNAME(1)
|
1 HOSTNAME(1) User Commands HOSTNAME(1)
2
3
4
5 NAME
6 hostname - set or print name of current host system
7
8 SYNOPSIS
9 /usr/bin/hostname [-fls | name-of-host]
10
11
12 DESCRIPTION
13 The hostname command prints the name of the current host, as given
14 before the login prompt. The super-user can set the hostname by giving
15 an argument.
16
17
18 OPTIONS
19 For compatibility long arguments are also supported.
20
21
22 -f, --fqdn print out the FQDN (fully qualified domain name).
23
24 -l, --long alias for -f, --fqdn.
25
26 -s, --short strip domain information from hostname.
27
28
29 The hostname command cannot be used to set the fqdn, long or short
30 name.
31
32
33 SEE ALSO
34 uname(1), attributes(5)
35
36
37
38 May 11, 2016 HOSTNAME(1)
|