Get the list of usernames from /etc/passwd.
Lines in /etc/passwd are colon-separated; field 1 is the username.
`cut -d: -f1 /etc/passwd` extracts it. The output should contain root, user, and daemon — one per line.
Sign in to save your code and track progress across devices.