Linux : User Information & Management

In this post, I’m going to give some list of Linux commands, which is very useful to get user information and management.

#Shows the user and group ids of current user

id

#Shows the last users who have logged onto the system

last

#Shows who is logged into the system

who

#Shows who is logged in and what they are doing

w

#Create a group named as “acTest”

groupadd acTest

#Create an account named as acUser, with a comment of “Advance Computing” and create the user’s home directory

useradd -c “Advance Computing” -m acUser

#Delete the acUser account

userdel acUser

#Add the acUser account to the develoment group

usermod -aG development acUser

To contribute :

” If you like Advance Computing and would like to contribute, you can  mail your article to “computingadvance@gmail.com”. You will get credit as your name , email id, designation with article on this blog. “

Leave a Reply

Your email address will not be published. Required fields are marked *