Reading Logs
Quick answer: Logs live in /var/log. Use grep to find lines (grep -i error syslog), wc -l to count them and tail to see the newest entries.
Every machine keeps a diary. Read today and pull out the parts you care about, then count how often something happened.
Commands practised here
wc -l fileCount lines.grep -c word fCount lines containing a word.grep -i word fSearch, ignoring capital letters.awk '{print $1}' fPrint the first column of each line.
Nearby labs
- All labsBrowse the full list.
- Exam prepWhich exams these objectives map to.
- Listing Files
- Escape the Maze