Which of the following commands show remote SSH, FTP & telnet sessions for a particular day?

Hundreds of people log in to a server from remote locations per day. Which of the following
commands show remote SSH, FTP & telnet sessions for a particular day?

Hundreds of people log in to a server from remote locations per day. Which of the following
commands show remote SSH, FTP & telnet sessions for a particular day?

A.
cat /var/log/messages | grep “‘date “+%b %e”‘” | egrep ‘(telnet|ssh|ftp)’

B.
cat /var/log/messages | egrep ‘(telnet|ssh|ftp)’

C.
cat /var/log/messages | grep “`date “+%b %e”`” | grep -E ‘(telnet|ssh|ftp)’

D.
cat /var/log/messages | date | egrep ‘(telnet|ssh|ftp)’

E.
cat /var/log/messages > grep “‘date “+%b %e”‘” > egrep ‘(telnet\ssh\ftp)’



Leave a Reply 2

Your email address will not be published. Required fields are marked *


higors

higors

A and C are the correct answers

capslock

capslock

never grep the cat 🙂