To list all users in Linux:
1 | cat /etc/passwd |
See only the first word before double colon (:)
for exampple, user “root” will look like: root:x:0:0:root:/root:/bin/bash
And to list all groups do the following
1 | cat /etc/group |
To list all users in Linux:
1 | cat /etc/passwd |
See only the first word before double colon (:)
for exampple, user “root” will look like: root:x:0:0:root:/root:/bin/bash
And to list all groups do the following
1 | cat /etc/group |
© Copyright 2006-2026 www.ronaldpringadi.com.
All rights reserved.