Training is fantastic so far!
I noticed the lecture notes for 3.1: The mongod, Lecture: Logging Basics ( here: https://university.mongodb.com/mercury/NHTTPRv3/2019_ondemand_v40/chapter/Chapter_3_1_The_Mongod/)
include an instruction to search through a log file using
grep. The syntax used makes use of the
-R flag, which continues the search recursively through a nested directory structure, but the log file here (and in general usage) is just a single file. I’m guessing the instructions meant to use the
-i flag instead, which allows search patterns to be case-insensitive, which would be useful here, as the “update” text may well contain capital letters in the logfile. The two flags are often used together in the real world, so this seems like a simple typo.
So, tl;dr, I recommend changing:
grep -R 'update' /data/db/mongod.log
grep -i 'update' /data/db/mongod.log