In RHEL 8, RH134, Chapter 1, Section 5 there is an error:
The error is the N (capital) does not find the next match, n (lowercase) does. N finds the previous match. The lab (Chapter 1, Section 6) gets this correct.
-----------------
Speaking of the Chapter 1, Section 6 lab, there is this inconsistency:
It leads the reader to think that there is a postfix user and group as well as a postdrop user and group. This is not true; postdrop is not a user.
Therefore, the student will be searching for the UID and GID for postfix and just the GID for postdrop.
-----------------
Then there is this:
There are a couple of things here -- omissions:
It's this, March 22nd and Feb. 6th written one on top of another:
Mar 22
Feb 6
The regexes would be (for example):
'^Mar 22 08:2.*GID'
'^Feb 6 08:2.*GID'
i'm doing the samething but i still nothing to get...command
grep '^Jun 3 22:5.*GID' /var/log/secure
It looks like you forgot the space - which was the point of my post. You wrote:
grep '^Jun 3 22:5.*GID' /var/log/secure
What should work is:
grep '^Jun 3 22:5.*GID' /var/log/secure
Notice that there are TWO spaces between Jun and 3 because the date field requires two characters for grep to work.
Of course, it is possible that your regular expression (regex) doesn’t match anything in /var/log/secure. For your regex to work, these things must exist in the file:
Here's a screen shot of a similar search, with the results. First without two spaces between Jun and 4 (since today is June 4th at about 2:15am) which produces no output and then with two spaces which does produce output:
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.