题目内容
(请给出正确答案)
[单选题]
grep命令中,要列出字符匹配成功后续的n行,使用哪个选项?
A.-
B.-A
C.-n
D.-v
答案
查看答案
A.-
B.-A
C.-n
D.-v
第1题
A.grep -vE "(^#| ^$) "httpd. conf
B.grep -E "(^#| ^$) "httpd. conf
C.grep "(^#| ^$) "httpd. conf
D.grep -vE "^#"httpd. conf
第2题
A.grep ' [0-9]'/etc/inittab
B.grep ' ^[0-9]$'/etc/inittab
C.grep ' [0-9] $'/etc/inittab
D.grep ' : [0-9] : '/etc/inittab
第3题
A.dmesg | grep ' eth'
B.dmesg | grep ' cpu'
C.dmesg | grep ' mem'
D.dmesg | grep ' pci'
第6题
A.ls -a ~/ | grep ' . '
B.ls -a ~/ | grep ' ^. '
C.ls -a ~/ | grep ' ^/. '
D.ls ~/ | grep ' ^. '
第8题
A.Netstat –a|grep 5018
B.find –a|grep 5018
C.netstat –an|grep 5018
D.search –an|grep 5018