在 RHEL 6系统中,通过使用 Shell的()功能,可以将命令的执行结果保存到指定的文本中。
A. 别名
B. 管道
C. 重定向输出
D. 自动补齐
查看答案
假设你不知道 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