userinfo - displays user information
userinfo [-ev] user
The userinfo utility retrieves the user information from the
The following command line options are recognised:
-e return 0 if the user exists, and non-zero if the user does not
exist, on the system. No information is displayed.
This form of
the command is useful for scripts which need to
check whether a
particular user name or UID is already in use on the
-v perform any actions in a verbose manner.
The user argument may either be a user's name, or a UID.
The userinfo utility exits 0 if the user name or UID exists,
if it does not.
The userinfo utility first appeared in OpenBSD 2.7.
The userinfo utility was written by Alistair G. Crooks
OpenBSD 3.6 November 30, 1999
[ Back ]