题目内容

假设你不知道 test.txt文件在什么目录下,你如何准确地找到这个文件?()

A. find -name test.ttxt
B. whereis test.txt c. ls * test.txt
C. find / -type f -name test.txt

查看答案
更多问题

为匹配以001开头的行,可以使用()正则表达式。

A. ^001 в. $001
B. *001
C. \001

当用 vi编辑器编辑一个名为a.txt的文件(命令行模式),如何保存文件内容到一个 名为/tmp/extra.txt的文件中?( )

A. :w /tmp/extra.txt
B. :lq/tmp/extra.txt c. Ctrl-O, /tmp/extra.txt
C. 从菜单中选择 save 按钮

执行“vim a.txt”命令后,现要将a.txt文件里的所有 old 替换为 new, 如何操作?()

A. :% s/old/new/g
B. :/old/new c. :s/old/new
C. :s/old/new/s

在Redhat Enterprise Linux中,显示info文件的前4行,可以用以下()命令。

A. head 4 info
B. cat -n 4 info
C. head -n 4 infof
D. more -n 4 info

答案查题题库