Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145167310
D26866.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26866.diff
View Options
Index: head/usr.bin/getent/getent.1
===================================================================
--- head/usr.bin/getent/getent.1
+++ head/usr.bin/getent/getent.1
@@ -29,7 +29,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd June 4, 2016
+.Dd October 24, 2020
.Dt GETENT 1
.Os
.Sh NAME
@@ -103,6 +103,24 @@
.Ar database ,
or 3 if there is no support for enumeration on
.Ar database .
+.Sh EXAMPLES
+Show entry for user sshd from the passwd database:
+.Bd -literal -offset indent
+$ getent passwd sshd
+sshd:*:22:22:Secure Shell Daemon:/var/empty:/usr/sbin/nologin
+.Ed
+.Pp
+Show entry for TCP from the protocols database:
+.Bd -literal -offset indent
+$ getent protocols tcp
+tcp 6 TCP
+.Ed
+.Pp
+Show entry for the localhost IPv6 address ::1 from the hosts database:
+.Bd -literal -offset indent
+$ getent hosts ::1
+::1 localhost localhost.my.domain
+.Ed
.Sh SEE ALSO
.Xr getutxent 3 ,
.Xr ethers 5 ,
@@ -123,7 +141,4 @@
.Nx 3.0 ,
and was imported into
.Fx 7.0 .
-It was based on the command of the same name in
-.Tn Solaris
-and
-.Tn Linux .
+It was based on the command of the same name in Solaris and Linux.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 17, 4:33 PM (18 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28819041
Default Alt Text
D26866.diff (1 KB)
Attached To
Mode
D26866: getent(1): Add EXAMPLES section
Attached
Detach File
Event Timeline
Log In to Comment