I need to get and filter the linux users list like:
username1 username1_group username2 username2_group ... usernameN usernameN_group
I've tried, but only that I've found is:
cat /etc/passwd | grep /home | cut -d: -f1
It gives me the list of users in /home folder. But how can I add the group name to each of them?
Thanks in advance!