Mit dem Befehl users kann man sich unter Linux alle User ausgeben lassen, die aktuell am System angemeldet sind.

Die einfachste Syntax ist: users

Mit man users oder users –help bekommt man das Handbuch oder die Hilfe zum Befehl.

Das Handbuch zu users hat folgenden Eintrag:

NAME
users – print the user names of users currently logged in to the current host

SYNOPSIS
users [OPTION]… [ FILE ]

DESCRIPTION
Output  who  is  currently logged in according to FILE.  If FILE is not specified,
use /var/run/utmp.  /var/log/wtmp as FILE is common.

–help display this help and exit

–version
output version information and exit

AUTHOR
Written by Joseph Arceneaux and David MacKenzie.

REPORTING BUGS
Report bugs to <bug-coreutils@gnu.org>.

COPYRIGHT
Copyright © 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms  of  the
GNU  General  Public  License <http://www.gnu.org/licenses/gpl.html>.  There is NO
WARRANTY, to the extent permitted by law.

SEE ALSO
The full documentation for users is maintained as a Texinfo manual.  If  the  info
and users programs are properly installed at your site, the command

info users

should give you access to the complete manual.

Der andere Befehl unter Linux ist groups, mit dem alle Gruppen angezeigt bekommt, in denen der aktuelle User vertreten ist. Gibt man dem Befehl noch einen User als Parameter mit, so zeigt er die zugehörigen Gruppen des Users an.

Die Befehle sind: groups bzw. groups <USERNAME>

Das Handbuch zu groups hat folgenden Eintrag:

NAME
groups – print the groups a user is in

SYNOPSIS
groups [OPTION]… [USERNAME]…

DESCRIPTION
–help display this help and exit

–version
output version information and exit

Same as id -Gn.  If no USERNAME, use current process.

AUTHOR
Written by David MacKenzie.

REPORTING BUGS
Report bugs to <bug-coreutils@gnu.org>.

COPYRIGHT
Copyright © 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR  A  PARTICULAR
PURPOSE.

SEE ALSO
The  full  documentation  for groups is maintained as a Texinfo manual.
If the info and groups programs are properly installed  at  your  site,
the command

info groups

should give you access to the complete manual.



 Antworten

   
Impressum Suffusion theme by Sayontan Sinha