Iwant to list only users names in a Linux system byusing the /etc/passwd file.
Printable View
Iwant to list only users names in a Linux system byusing the /etc/passwd file.
You can use the cut command which will select the specified column.
$cat /etc/passwd | cut -d : -f 1
Reference:https://www.poftut.com/list-users-groups-linux/