Tavo wants to check the status of failed Telnet-based login attempts on a Linux machine he administers. Which shell command can he use to see only that information?
A.
cat/etc/passwd> newfile.txt
B.
grep login/var/log/messages
C.
more /var/log/secure
D.
more /etc/passwd
Explanation:
The grep command is used o search for information in file.
Incorrect Answers:
A: The cat command is used to list information in a file, but does not filter it.
C: The more command will not filter information, and you don’t scan the security log file for the messages.
D: The more command will not filter information, and you don’t scan the password file for the messages.
1D0-470