back to labs
Dojo: How Many Distinct Users?
MediumOne-Liner Dojo5-10 minThe brief
The log /root/access2.log lists a username in field 1 on every line, with lots of repeats. In ONE line, write the NUMBER of DISTINCT users to /root/answer.txt.
Extract the column, keep one of each, count them. Three tools, one pipe.
What you'll do
- Write the count of distinct field-1 usernames in /root/access2.log to /root/answer.txt, in one line
Hands-on lab: you work on a real Linux box in your browser, graded on the machine's actual state.
