cp file1file2
mv file1file2
ls file1>file2
ll file1>file2
第1题:
A、将文件file2的内容添加到文件file1的末尾
B、将文件file1的内容添加到文件file2的末尾
C、连接文件file1和file2
D、显示文件file1和file2
第2题:
你用vi编辑器编写了一个脚本文件shell.sh,你想将改文件名称修改为shell2.sh,下列命令()。可以实现。
A.cpshell.shshell2.sh
B.mvshell.shshell2.sh
C.lsshell.sh>shell2.sh
D.llshell.sh>shell2.sh
第3题:
A. cmp file1 file2
B. diff file1 file2
C. more file1 file2
第4题:
A.文件
B.编辑
C.格式
D.工具
第5题:
下列程序用于将源文件中的字母进行大小写转换,while的条件是【 】。
include<iostream. h>
include<fstream. h>
include<iomanip. h>
void main( )
}
char ch;
fstream filel, file2
char fn1[10], fn2[10];
cout<<"输入源文件名:";
cin>>fn1
cout<<"输入目标文件名:";
tin>>fn2
file1, open(fn1 ,ios: :in);
file2, open(fn2, ios:: out);
while(________)
{
if(ch>='a'&&ch<='z')
ch=ch-'a'+'A',
file2, put(ch),
}
file1, close(),
file2, close();
}
第6题:
A、File2|txt
B、.doc
C、*ABC
D、TEST.DOC
第7题:
A.AddFile2asanamespaceserverfor\\fabrikam.com\dfs.
B.Add\\File2\templatesasafoldertargetfor\\fabrikam.com\dfs\templates.
C.IntheGroupPolicypreferencesofGPO2andGPO3,addnewmappeddrives.
D.CreateaDFSReplicationgroupthatcontains\\File1\templatesand\\File2\templates.
第8题:
A.同时显示文件file1和file2的前120行
B.同时显示文件file1的前120行并且存入文件file2
C.同时删除文件file1和file2的前120行
第9题:
下列程序用于将源文件中的字母进行大小写转换,请填写while的请句。
include<iostream.h>
include<fstream.h>
include<iomanip.h>
void main()
{
char ch;
fstream file1,file2;
char fnl[10],fn2[10];
cout<<“输入源文件名:”;
cin>>fn1;
cout<<“输入目标文件名:”;
cin>>fn2;
{i
第10题: