A fundamental part of system administration is configuring and managing users and groups. Part of this task involves monitoring the log in capabilities of all system entities.
In this video you will see the command to see a list of all users in the passwd file.
cat /etc/passwd
Next you will see how to shorted that and just see the users.
cut -d : -f 1 /etc/passwd
You will also see how to see all groups
cat /etc/groups
and then see how to get a list of groups only
cut -d : -f 1 /etc/group
This tutorial was filmed on Centos but it should work for all Linux versions such as Ubuntu
Watch video HOW TO VIEW SYSTEM USERS IN LINUX online without registration, duration hours minute second in high quality. This video was added by user Darren's Tech Tutorials 12 August 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,045 once and liked it 9 people.