题目内容

查看家目录下以“.c”结尾的文件内容,并显示行号( )?(1.0)

A. cat -n ~/*.c
B. cat -n ~/*.txt
C. cat -m ~/*.txt
D. cat -m ~/*.c

查看答案
更多问题

逐屏查看 /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

答案查题题库