Hands-on task
This task is step 3 of the course “Users, groups and permissions”
User UID from passwd
The system has a user deploy. Get their numeric UID from /etc/passwd and write it to /root/uid.txt. In passwd fields are separated by colons, and the UID is the third field.
What you'll practise:
- cut
- /etc/passwd
- -d delimiter
- -f field
- grep