Linux Labs

First steps / Stage 9 of 15

Text and editors

Not running Starting usually ~20 s
Leave the lesson

Step 8 of 8 · summary · 1 min

Summary

  • A log is checked from two sides: tail shows how things ended, grep -n -i shows every line with the word and where it sits.
  • Empty grep output is a reason to check the word, the case and the file; it does not mean "no errors".
  • Editing a config takes three moves: a .bak copy, the edit in Vim saved with :w, and a check outside the editor with cat and grep.
  • The on-call engineer at the start of the lesson searched for error, while the log said ERROR: grep -i error would have found both errors.
Ubuntu 24.04
Loading…