186. What are the popular commands for user management in Unix?
In Unix we use following commands for User Management:
I. id : This command gives the active user id with login and groups to which user belongs.
II. who : This command gives the user that is currently logged on system. It also gives the time of login.
III. last : This command shows the previous logins to the system in a chronological order.
IV. adduser : We use this command to add a new user.
V. groupadd : We use this command to add a new group in the system.
VI. usermod : We user usermod command to add/remove a user to a group in Unix.