summaryrefslogtreecommitdiffstats
path: root/bin/hostname/hostname.1
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-11-25 05:54:17 +0000
committeraraujo <araujo@FreeBSD.org>2016-11-25 05:54:17 +0000
commit7e1d7cd06cc4c2bc9179a377342f9c90f0f3f6e0 (patch)
treeb92fdc778a22f497f3d098439c7eedf3ee780b0d /bin/hostname/hostname.1
parentda711180e126400521ec0737a553061f9230d0bd (diff)
downloadFreeBSD-src-7e1d7cd06cc4c2bc9179a377342f9c90f0f3f6e0.zip
FreeBSD-src-7e1d7cd06cc4c2bc9179a377342f9c90f0f3f6e0.tar.gz
MFC r308443, r308459, r308462, r308478, r308786
r308443: Add -d flag that prints domain only. PR: 212875 Submitted by: Ben RUBSON <ben.rubson@gmail.com> Reviewed by: pi r308459: Fix missing '-' for the flags -s and -d on both manpage and usage. Reported by: garga, bde r308462: Add flag -B which does the same like batch mode but without exiting after print. Also add a new flag -s that add blocks size to statistics. PR: 198347, 212726 Submitted by: Ben RUBSON <ben.rubson@gmail.com> Tested by: pi MFC After: 2 weeks. r308478: We can't use protect(1) inside a jail(8)! To avoid have warning for services that are using oomprotect, oomprotect will only be applied on services that won't run inside jails. Reported by: allanjude MFC after: 2 weeks. r308786: rc.subr: Swap checks so we only fork sysctl if *_oomprotect is set.
Diffstat (limited to 'bin/hostname/hostname.1')
-rw-r--r--bin/hostname/hostname.17
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/hostname/hostname.1 b/bin/hostname/hostname.1
index bfff27b..4da9f63 100644
--- a/bin/hostname/hostname.1
+++ b/bin/hostname/hostname.1
@@ -29,7 +29,7 @@
.\" @(#)hostname.1 8.2 (Berkeley) 4/28/95
.\" $FreeBSD$
.\"
-.Dd December 7, 2006
+.Dd November 10, 2016
.Dt HOSTNAME 1
.Os
.Sh NAME
@@ -37,7 +37,8 @@
.Nd set or print name of current host system
.Sh SYNOPSIS
.Nm
-.Op Fl fs
+.Op Fl f
+.Op Fl s | d
.Op Ar name-of-host
.Sh DESCRIPTION
The
@@ -62,6 +63,8 @@ This is the default behavior.
.It Fl s
Trim off any domain information from the printed
name.
+.It Fl d
+Only print domain information.
.El
.Sh SEE ALSO
.Xr gethostname 3 ,
OpenPOWER on IntegriCloud