Question - Name the various commands that are used for the user information in UNIX.
Answer -
The various commands that are used for displaying the user information in Unix are:
- id: This displays the active user id with login and group.
- last: This displays the last login of the user in the system.
- who: This determines who is logged onto the system.
- groupadd admin: This is used to add group ‘admin’.
- usermod –a: This is used to add an existing user to the group.