單項(xiàng)選擇題下列那個(gè)命令行可列出/etc/passwd文件中含有root這個(gè)文本的行()
A.grep root /etc/group
B.echo root ∣grep /etc/group
C.echo /etc/group ∣grep root
D.A和C
您可能感興趣的試卷
你可能感興趣的試題
1.單項(xiàng)選擇題下列哪一項(xiàng)可以列出文件/etc/services中含有文本ftp的行()
A.echo ftp /etc/services
B.echo ftp < /etc/services
C.grep ftp -q /etc/services
D.grep ftp < /etc/services
2.單項(xiàng)選擇題下列哪個(gè)命令行可列出文件/usr/share/dict/words 中含有sun這個(gè)文本的所有行及其行號(hào)()
A.grep–n sun /usr/share/dict/words
B.grep–N /usr/share/dict/words sun
C.grep–r sun /usr/share/dict/words
D.grep–r /usr/share/dict/words sun