-->
当前位置:首页 > 题库

单选题:Which line below would count the total number of lines with the

Luz5年前 (2021-05-10)题库514
Which line below would count the total number of lines with the word " Goodbye" in /var/log/messages?@[C](1)
A. wc -l ' Goodbye /var/log/messages '
B. wc -l /var/log/messages | grep ' Goodbye '
C. cat /var/log/messages | grep ' Goodbye ' | wc -l
D. cat /var/log/messages | grep ' Goodbye ' | wc -c




A.wc -l ' Goodbye /var/log/messages '
B.wc -l /var/log/messages | grep ' Goodbye '
C.cat /var/log/messages | grep ' Goodbye ' | wc -l
D.cat /var/log/messages | grep ' Goodbye ' | wc -c


答案:C