ubuntu check users code example
Example 1: ubuntu list users
cat /etc/passwd
Example 2: list all users linux
awk -F: '{ print $1}' /etc/passwd
Example 3: how to get list of users in ubuntu
cat /etc/passwd
#check list of users in linux ubuntu
Example 4: ubuntu know username
whoami
or
echo $USER
Example 5: list users in ubuntu
cut -d: -f1 /etc/passwd