diff options
author | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2020-10-24 16:40:34 +0000 |
---|---|---|
committer | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2020-10-24 16:40:34 +0000 |
commit | f7585b288b0d9e80b940be4dc066cddbae0b9cc9 (patch) | |
tree | 90adc5e1a51f53613c14863afaca287dffa1fba8 /usr.bin | |
parent | b19cdab3456b361e1ef79651fe1437d8cab4de19 (diff) | |
download | src-test-f7585b288b0d9e80b940be4dc066cddbae0b9cc9.tar.gz src-test-f7585b288b0d9e80b940be4dc066cddbae0b9cc9.zip |
getent(1): Add EXAMPLES section
Add 3 small examples to the EXAMPLES section.
Approved by: manpages (gbe@)
Differential Revision: https://reviews.freebsd.org/D26866
Notes
Notes:
svn path=/head/; revision=367011
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/getent/getent.1 | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/usr.bin/getent/getent.1 b/usr.bin/getent/getent.1 index a77a18084e9ba..5ecf3b878f573 100644 --- a/usr.bin/getent/getent.1 +++ b/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 @@ utility exits 0 on success, .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 @@ command appeared in .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. |