Examining User Information Flashcards
The id command displays…?
user and group information.
The whoami reports the…?
current username.
The who, users, and w commands report …?
users with active sessions.
id -g, –group …?
Print only effective group id
id -G –groups ..?
Print all group ids
id -u, –user …?
Print only effective user id.
id -n, –name …?
Print user or group name instead of number.
If called without arguments, the id command returns…?
a summary of group memberships for the user who ran it. If supplied with a username, the id command reports group information for the specified user.
By default, ls reports the….?
user’s user id, primary group and primary group id, and all groups (primary and secondary) to which the user belongs, both by group name and group id.
The output of the id command can be qualified with…?
the command line switches.
The id command can report…?
one or more piece of information, starting with context=, known as the SELinux context.
SELinux, or “Security Enhanced Linux”, involves …?
topics which will be covered in more detail in later course, and for now can be safely ignored.
The whoami command simply…?
reports the current user’s username.
In Red Hat Enterprise Linux, there is seldom a need to use the whoami command, because…?
the default bash prompt displays the current user’s username. The prompt is configurable, however, and on other Linux or Unix systems, or in other environments (such as rescue shells), a user’s identity might not be as obvious. Also, the whoami command can be embedded in a script, which could take on different behavior depending on who’s running it.
Often, a user would like to know who else is using a particular Linux or Unix machine. Red Hat Enterprise Linux provides three commands which report current users, each at a different level of detail. THe simplest of these is the…?
users command.