Write the list of commands that can used in relation to users in unix
The various commands that can be used to know about the user information in unix are as follows:
- id Show the active user id with login and group
- last Shows last logins on the system
- who Shows who is logged on the system
- groupadd admin Used to add group "admin" and user colin (Linux/Solaris)
- usermod -a -G Used to add existing user to group (Debian)
- usermod -A Used to add existing user to group (SuSE)
- adduser raj FreeBSD add user raj (interactive)
These commands can be executed at the shell and are distribution dependent.
Post a Comment