Practice Drill

Goal: Complete this drill from memory in the terminal below.

From /etc/passwd: extract usernames (field 1, delimited by :), sort alphabetically, remove duplicates, count total, write just the number to /tmp/users.txt.

Tip: cut -d: -f1 /etc/passwd | sort | uniq | wc -l