网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
在linux下echohello>>test这条命令中”>>”符号的作用是()。
A
将test文件的内容清空
B
将hello这个字符添加到test文件开头
C
将hello这个字符添加到test文件的末尾
D
什么都不作
参考答案
参考解析
解析:
暂无解析
更多 “单选题在linux下echohellotest这条命令中””符号的作用是()。A 将test文件的内容清空B 将hello这个字符添加到test文件开头C 将hello这个字符添加到test文件的末尾D 什么都不作” 相关考题
考题
UNIX系统命令catfile1file2功能是( )。
A、将文件file2的内容添加到文件file1的末尾B、将文件file1的内容添加到文件file2的末尾C、连接文件file1和file2D、显示文件file1和file2
考题
下面的程序执行后,文件test.t中内容是______。 inc1udevoid fun(char*fname,char*st) {
下面的程序执行后,文件test.t中内容是______。 #inc1ude<stdio.h> void fun(char*fname,char*st) { FILE*myf;int i; myf=fopen(fname,"w") for(i=0;i<strlen(st);i++)fputc(st[i]myf); fdose(myf); } main() { fun("test.t""new word");fun("test.t,"hello,");}A.hello,B.new wor1dhelloC.new worldD.hello,rld
考题
在C#程序中,显示一个信息为"test", 标题为"Hello"的消息框,正确的语句是()。A. MessageBox("test","hello");B. MessageBox.Show("test","hello");C. MessageBox("hello","test");D. MessageBox.Show("hello","test");
考题
下面的程序执行后,文件test.txt中的内容是______。 include void fun(char *fname,char
下面的程序执行后,文件test.txt中的内容是______。 #include<stdio.h> void fun(char *fname,char *st) { FILE*myf;int i; myf=fopen("test.txt","w"); for(i=0;i<strlen(st);i++) fputc(st[i],myf); fclose(myf); } main() { fun("test","new one"); fun("test","hello,"); }A.hello,B.new onehello,C.new oneD.hello,ne
考题
下面的程序执行后,文件test.t中内容是 ______。includevoid fun(char * fName,char * s
下面的程序执行后,文件test.t中内容是 ______。 #include<stdio.h> void fun(char * fName,char * st) {FILE * myf; int i; myf=fopm(fname,"w"); for(i=0;i<strlen(st);i++)fputc(st[i],myf); fclose(myf); } main(){fun("test.t","new world");fun("test.t","hello,");}A.hello,B.new worldhelloC.new worldD.hello.rld
考题
用户通过命令行与Linux系统进行交互,完成各种配置及管理等功能。根据下表要求写出完整的Linux命令。序号命令要求完整命令1测试与www.baidu.com的互通性①2改变当期目录到/home/zhang②3将文件test改名为test.org③4在文件test.c中查找字符串passwd④
考题
Linux系统在默认情况下将创建的普通文件的权限设置为( ),若要将/test文件的权限设置为所有用户都具有读写执行的权限,则正确的命令是(请作答此空)。A.chmod-rw-r--r--/test
B.chmod test-r--r--r--
C.chmod-777/test
D.chmod-111/test
考题
在linux系统中,查找/home/目录下文件名以test开头的文件,以下正确的命令是()。A、find /home -name test*B、find -name test* /homeC、find test* /homeD、find -n test* /home
考题
在linux系统中,用cp命令将/tmp/test中的文件到/tmp/test1中,不想拷贝目录本身,以下命令正确的是()。A、cp -R /tmp/test /tmp/test1B、cp -r /tmp/test /tmp/test1C、cp -R /tmp/test/. /tmp/test1D、cp /tmp/test /tmp/test1
考题
在linux系统中,将文件/tmp/test1和/tmp/test2压缩到/tmp/test.gz,正确的命令是()。A、tar -czvf test1 test2 test.gzB、tar -czvf test.gz test1 test2C、tar test.gz test1 test2D、tar test1 test2 test.gz
考题
在linux下echohellotest这条命令中””符号的作用是()。A、比较hello与test文件的内容B、将hello这个字符输出到屏幕上C、将hello这个字符输出到test文件中D、什么都不作
考题
在linux系统中,在当前目录下,将文件/test.gz解压缩成/test,正确的命令是()。A、tar -czf test.gzB、tar -xvzf test.gzC、tar -uczf test.gzD、tar -czf test.gz
考题
在linux系统中,用cp命令将/tmp/test/file文件,复制到/tmp下,并保持原来的名字,以下命令中正确的是()。A、cp -l /tmp/test/file /tmpB、cp -s /tmp/test/file /tmpC、cp -r /tmp/test/file /tmpD、cp /tmp/test/file /tmpE、cp /tmp/test/file /tmp/file
考题
在linux下echohellotest这条命令中””符号的作用是()。A、将test文件的内容清空B、将hello这个字符添加到test文件开头C、将hello这个字符添加到test文件的末尾D、什么都不作
考题
单选题在linux下echohellotest这条命令中””符号的作用是()。A
将test文件的内容清空B
将hello这个字符添加到test文件开头C
将hello这个字符添加到test文件的末尾D
什么都不作
考题
单选题在linux系统中,查找/home/目录下文件名以test开头的文件,以下正确的命令是()。A
find /home -name test*B
find -name test* /homeC
find test* /homeD
find -n test* /home
考题
单选题UNIX系统命令cat file1file2功能是()。A
将文件file2的内容添加到文件file1的末尾B
将文件file1的内容添加到文件file2的末尾C
连接文件file1和file2D
显示文件file1和file2
考题
单选题如何将/etc/passwd这个文件的属主改变成root()。A
chgrp root/etc/passwdB
chown root/etc/passwdC
chown test/etc/passwdD
chgrp test/etc/passwd
考题
单选题在linux系统中,在当前目录下,将文件/test.gz解压缩成/test,正确的命令是()。A
tar -czf test.gzB
tar -xvzf test.gzC
tar -uczf test.gzD
tar -czf test.gz
考题
单选题在linux下echohellotest这条命令中””符号的作用是()。A
比较hello与test文件的内容B
将hello这个字符输出到屏幕上C
将hello这个字符输出到test文件中D
什么都不作
考题
单选题在linux系统中,将文件/tmp/test1和/tmp/test2压缩到/tmp/test.gz,正确的命令是()。A
tar -czvf test1 test2 test.gzB
tar -czvf test.gz test1 test2C
tar test.gz test1 test2D
tar test1 test2 test.gz
考题
单选题在linux系统中,用cp命令将/tmp/test中的文件到/tmp/test1中,不想拷贝目录本身,以下命令正确的是()。A
cp -R /tmp/test /tmp/test1B
cp -r /tmp/test /tmp/test1C
cp -R /tmp/test/. /tmp/test1D
cp /tmp/test /tmp/test1
考题
多选题在linux系统中,用cp命令将/tmp/test/file文件,复制到/tmp下,并保持原来的名字,以下命令中正确的是()。Acp -l /tmp/test/file /tmpBcp -s /tmp/test/file /tmpCcp -r /tmp/test/file /tmpDcp /tmp/test/file /tmpEcp /tmp/test/file /tmp/file
考题
单选题有以下程序段:
FILE*fp;
if((fp=fopen(test.txt,w))==NULL)
{
printf(不能打开文件!);
exit(0);
}
else
printf(成功打开文件!);
若文件test.txt已存在,则以下叙述正确的是( )。A
程序运行后,文件test.txt中的原有内容将全部消失B
程序运行时,会因文件存在而出错C
对文件test.txt进行写操作后,可以随机进行读取D
对文件test.txt写入的内容总是被添加到文件尾部
热门标签
最新试卷