Hands-on task
This task is step 1 of the course “Linux: everyday tasks”
List users from passwd
Export the names of all system users (the first field of /etc/passwd) to /root/users.txt, one per line.
What you'll practise:
- /etc/passwd
- cut
- fields and delimiters
- output redirection