Write a 2-line report of failed-login activity to /home/user/report.txt.
Final challenge — combine everything you've learned.
The file `/home/user/report.txt` must contain EXACTLY these two lines (no extra blank line):
failed_logins=3
unique_ips=1
Hints:
- Count failed lines with `grep -c "Failed password" /var/log/syslog.log` → 3
- The unique source IP is 10.0.0.7 → count = 1
- Use `echo "...=N" > file` then `echo "...=N" >> file`, or build it with a small pipeline. Plain `echo` is fine.
When done, your report.txt should match exactly. Welcome to the sysadmin life. ⛓
Sign in to save your code and track progress across devices.