tail head cat sleep
QR code linking to this page

Manual Pages  — HOSTNAME

NAME

hostname – set or print name of current host system

CONTENTS

SYNOPSIS


hostname [-f] [-s | -d] [name-of-host]

DESCRIPTION

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 initialization script /etc/rc.d/hostname, normally run at boot time. This script uses the hostname variable in /etc/rc.conf.

Options:
-f
  Include domain information in the printed name. This is the default behavior.
-s
  Trim off any domain information from the printed name.
-d
  Only print domain information.

SEE ALSO

gethostname(3), rc.conf(5)

HISTORY

The hostname command appeared in BSD 4.2 .

HOSTNAME (1) November 10, 2016

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

Some people open all the windows; wise wives welcome spring by moving the UNIX.