Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161384617
D27539.id80539.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
943 B
Referenced Files
None
Subscribers
None
D27539.id80539.diff
View Options
Index: head/usr.bin/id/id.1
===================================================================
--- head/usr.bin/id/id.1
+++ head/usr.bin/id/id.1
@@ -136,7 +136,43 @@
.El
.Sh EXIT STATUS
.Ex -std
+.Sh EXAMPLES
+Show information for the user
+.Ql bob
+as a password file entry:
+.Bd -literal -offset indent
+$ id -P bob
+bob:*:0:0::0:0:Robert:/bob:/usr/local/bin/bash
+.Ed
+.Pp
+Same output as
+.Xr groups 1 for the root user:
+.Bd -literal -offset indent
+$ id -Gn root
+wheel operator
+.Ed
+.Pp
+Show human readable information about
+.Ql alice :
+.Bd -literal -offset indent
+$ id -p alice
+uid alice
+groups alice webcamd vboxusers
+.Ed
+.Pp
+Assuming the user
+.Ql bob
+executed
+.Dq Nm su Fl l
+to simulate a root login, compare the result of the following commands:
+.Bd -literal -offset indent
+# id -un
+root
+# who am i
+bob pts/5 Dec 4 19:51
+.Ed
.Sh SEE ALSO
+.Xr groups 1 ,
.Xr who 1
.Sh STANDARDS
The
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 4, 7:44 AM (10 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34640287
Default Alt Text
D27539.id80539.diff (943 B)
Attached To
Mode
D27539: id(1): Add EXAMPLES section
Attached
Detach File
Event Timeline
Log In to Comment