Question - Enlist the various commands that are used to know about the user information in UNIX.
Answer -
The various commands that are used for displaying the user information in Unix are enlisted below:
- Id: displays the active user id with login and group.
- Last: displays the last login of the user in the system.
- Who: determines who is logged onto the system.
- groupadd admin: this command is used to add group ‘admin’.
- usermod –a: user to add an existing user to the group.