helper-scripts/lsusers.sh
2019-01-20 14:18:17 -08:00

5 lines
103 B
Bash

#!/usr/bin/bash
# List all users on the system
sort --unique <(awk -F ':' '{print $1}' < /etc/passwd)