hostname(1) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

hostname(1)

hostname(1)                      User Commands                     hostname(1)



NAME
       hostname - set or print name of current host system

SYNOPSIS
       /usr/bin/hostname [[-t] name-of-host]


       /usr/bin/hostname [-D]

DESCRIPTION
       When  no  arguments  are given, the hostname command prints the name of
       the current host, as given before the login prompt. The hostname can be
       set  by  giving  an  argument.  The change of the hostname is permanent
       unless the -t option is specified. The -t option changes  the  hostname
       only in the running kernel and does not update the system configuration
       to make the name persist across a reboot.


       By default, any system configured as a DHCP client will use  the  host‐
       name returned by DHCP as its hostname. This default behavior is altered
       once the hostname is set manually using the hostname  command.  The  -D
       option can be used to return the system back to the default behavior so
       that any DHCP client hostname will be given precedence over  the  manu‐
       ally  defined hostname. Note that this default behavior may change in a
       future Solaris release and the semantics of the -D option might  change
       to reflect any such change.


       Setting  the  hostname  temporarily  with  the  -t  option requires the
       {PRIV_SYS_ADMIN} privilege. Setting the hostname permanently, or  using
       the  -D  option,  requires  the  authorization to set properties of the
       svc:/system/identity:node SMF service. See smf_security(7).

ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE  TYPEAT‐
       TRIBUTE VALUE _ Availabilitysystem/core-os


SEE ALSO
       uname(1), nodename(5), attributes(7), privileges(7), smf_security(7)

HISTORY
       Support  for  the  -t and -D options, and for persistent setting of the
       hostname, was added in the Oracle Solaris 11.1.0 release.


       The hostname command has been present in all Sun and Oracle releases of
       Solaris.



Oracle Solaris 11.4               3 Nov 2021                       hostname(1)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3