*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> hostname (1)              
Title
Content
Arch
Section
 

hostname(1)

Contents


NAME    [Toc]    [Back]

       hostname  -  Sets or displays the name of the current host
       system

SYNOPSIS    [Toc]    [Back]

       hostname [-s] [new_name]

DESCRIPTION    [Toc]    [Back]

       The hostname command sets or displays the name of the current
  host  system.   If  you use the -s option, the short
       form of the host name is displayed.   Only  the  superuser
       can set the hostname.

EXAMPLES    [Toc]    [Back]

       To display the short form of the local host name, enter: $
       hostname -s host1 To change the name of  the  local  host,
       enter: # hostname west

FILES    [Toc]    [Back]

       Defines  the  Interface  Program  name  and address of the
       local host.

SEE ALSO    [Toc]    [Back]

      
      
       Commands:  hostid(1)

       Functions:  gethostname(2), sethostname(2)



                                                      hostname(1)
[ Back ]
 Similar pages
Name OS Title
hostid Tru64 Sets or displays the identifier of the local host
env Tru64 Displays or sets the current environment, or displays the values of environment variables
printenv Tru64 Displays or sets the current environment, or displays the values of environment variables
hostname HP-UX set or display name of current host system
hostname FreeBSD set or print name of current host system
hostname OpenBSD set or print name of current host system
hostname IRIX set or print name of current host system
domainname OpenBSD set or print YP domain of current host system
hostid IRIX set or print identifier of current host system
sact Tru64 Displays current Source Code Control System (SCCS) file editing status
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service