题目内容

逐屏查看 /usr/include/stdio.h文件内容,并显示行号的命令是()?(1.0)

A. less -N /usr/include/stdio.h
B. more -N /usr/include/stdio.h
C. less -n /usr/include/stdio.h
D. more -n /usr/include/stdio.h

查看答案
更多问题

分页显示/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

答案查题题库