cut -d: -f1 /etc/passwd | sort

ma non ottieni soltanto i nomi utente