This is a script you can use to list all Linux/Unix users on a machine:
#!/bin/bash
# Get a list of all users on the system
USERS=$(cut -d: -f1 /etc/passwd)
# Print out the list of users
echo "List of Linux/Unix Users:"
echo "------------------------"
echo "$USERS"
Save this script in a file with a .sh extension (e.g. list_users.sh) and make it executable with the following command:
chmod +x list_users.sh
Then, run the script with:
./list_users.sh
This will output a list of all Linux/Unix users on the system.