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

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

HOSTNAME(1)

Contents


NAME    [Toc]    [Back]

     hostname -- set or print name of current host system

SYNOPSIS    [Toc]    [Back]

     hostname [-s] [name-of-host]

DESCRIPTION    [Toc]    [Back]

     The hostname utility prints the name of the current host.	The super-user
     can set the hostname by supplying an argument; this is usually done in
     the network initialization script /etc/rc.network, normally run at boot
     time.  This script uses the hostname variable in /etc/rc.conf.

     Options:

     -s    Trim off any domain information from the printed name.

SEE ALSO    [Toc]    [Back]

      
      
     gethostname(3), rc.conf(5)

HISTORY    [Toc]    [Back]

     The hostname command appeared in 4.2BSD.


FreeBSD 5.2.1			April 28, 1995			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
hostid IRIX set or print identifier of current host system
domainname OpenBSD set or print YP domain of current host system
hostid Linux print the numeric identifier for the current host
users Linux print the user names of users currently logged in to the current host
hostname HP-UX set or display name of current host system
hostname Tru64 Sets or displays the name of the current host system
traceroute IRIX print the route packets take to a network host
traceroute FreeBSD print the route packets take to network host
traceroute OpenBSD print the route packets take to network host
sethostname OpenBSD get/set name of current host
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service