An operator is editing a file using vi. Which of the following subcommand sequences will copy the current line plus the next 2 lines to the end of the file?()A. yy E 3pB. 3yy G pC. 3yy :e 5ppD. yy :g 3p

题目
An operator is editing a file using vi. Which of the following subcommand sequences will copy the current line plus the next 2 lines to the end of the file?()

A. yy E 3p

B. 3yy G p

C. 3yy :e 5pp

D. yy :g 3p


相似考题
参考答案和解析
参考答案:B
更多“An operator is editing a file using vi. Which of the following subcommand sequences will copy the current line plus the next 2 lines to the end of the file?() ”相关问题
  • 第1题:

    在/home/stud1/wang目录下有一文件file,使用()可实现在后台执行命令,此命令将file文件中的内容输出到file.copy文件中。

    A.cat file>filE.copy

    B.cat filefilE.copy

    C.&cat filefilE.copy

    D.&cat file>filE.copy


    参考答案:D

  • 第2题:

    完成一个自定义函数copy_file,实现文件的复制功能。


    错误

  • 第3题:

    5、在/home/stud1/wang目录下有一文件file,使用 ()可实现在后台执行命令,此命令将file文件中的内容输出到file.copy文件中

    A.cat file >file.copy

    B.cat file file.copy

    C.&cat file file.copy

    D.&cat file >file.copy


    D

  • 第4题:

    阅读FORTRAN程序:
    OPEN(8,FILE=FILE2 DAT,STATUS=NEW)
    DO 10 I=1,3
    WEITE(8,(4I4)JI+I,J=1,4)
    10 CONTINUE
    CLOSE(8)
    END
    程序运行后,数据文件FILE2,DAT的内容是:


    答案:A
    解析:

  • 第5题:

    关于文件写入,下列说法正确的是()

    A.<file>.writelines(lines)将一个元素全为字符串的列表写入文件。#B.<file>.seek(offet)改变当前文件操作指针位置,seek的值:0——文件的开头 1——当前位置 2——文件结尾#C.<file>.writelines(lines)方法中的lines为列表,其中的元素不仅可以是字符串,还可以为整形、浮点型或其它组合类型#D.fo = open('test.txt','w+') ls = ['a','b','c'] fo.writelines(ls) for line in fo: print(line) fo.close() 程序执行后结果为: abc
    writelines(lines)将一个元素全为字符串的列表写入文件。

  • 第6题:

    在/home/stud1/wang目录下有一文件file,使用 ()可实现在后台执行命令,此命令将file文件中的内容输出到file.copy文件中

    A.cat file >file.copy

    B.cat file file.copy

    C.&cat file file.copy

    D.&cat file >file.copy


    D