Tag Archives: commands

Linux – User Commands (finding users registered in the system)

Find all users and services registered in the system:

cat /etc/passwd

Find all users registered in the system:

cat /etc/passwd | grep “/home”

To add a user to a group:

usermod -G<group> <user>

To delete a user and their home directory: (Users can have a “home” directory)

userdel -r <user>

Things i came across setting up VPS (servers) on linux.  In the midst of creating a domain i created users and webmin failed on me, and when i fixed the issue webmin failed on me again saying this user was already existed on the unix system.  Please feel free to comment.

Related Posts

Related Posts