分页显示/etc/services文件内容,每次显示5行的命令是()? (1.0)
A. cat /etc/services -5
B. more /etc/services -5
C. more -5 /etc/services
D. cat -5 /etc/services
查看答案
从文件c1.c和s1.c中找出包含字符串“main”的行的命令是()?(1.0)
A. list main c1.c s1.c
B. cat main c1.
C. s1.c find main c1.c s1.c
D. grep main c1.c s1.c
从目录prg和c中找出包含字符串“int x”,“int y”,“int i”所在文件及字符串所在行的命令是()?(1.0)
A. grep -Nr 'int [xyi]' c prg
B. grep -nr 'int [xyi]'
C. prg cat -nr 'int [xyi]' c prg
D. cat -Nr 'int [xyi]' c prg
从文件c/c1.c和prg/s1.c中查找包含字符串scanf或printf的行的命令是()? (1.0)
A. grep 'scanf\|printf' c/c1.c prg/s1.c
B. find 'scanf\|printf' c/c1.
C. prg/s1.c grep 'scanf|printf' c/c1.c prg/s1.c
D. grep 'scanf\printf' c/c1.c prg/s1.c
将ls命令输出分3列显示,空格作为分割符的命令是()?(1.0)
A. ls | paste -d" " - - - -
B. paste | ls -d" " - - - -
C. ls -d" " - - - -