how to list all users in home directory linux code example Example: list all users linux awk -F: '{ print $1}' /etc/passwd