在linux下echohello>test这条命令中”>”符号的作用是()。

题目
单选题
在linux下echohello>test这条命令中”>”符号的作用是()。
A

比较hello与test文件的内容

B

将hello这个字符输出到屏幕上

C

将hello这个字符输出到test文件中

D

什么都不作

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

在linux系统中,递归地压缩/tmp/test6/目录下的所有文件,正确的命令是()。

  • A、gzip -v /tmp/test6
  • B、gzip /tmp/test6
  • C、gzip -r /tmp/test6
  • D、tar -czvfr /tmp/test6

正确答案:C

第2题:

在linux系统中,查找/home/目录下文件名以test开头的文件,以下正确的命令是()。

  • A、find /home -name test*
  • B、find -name test* /home
  • C、find test* /home
  • D、find -n test* /home

正确答案:A

第3题:

若基于Linux操作系统所开发的ARM应用程序源文件名为test.c,那么要生成该程序代码的调试信息,编译时使用的GCC命令正确的是()。

A.arm-linux-gcc -c -o test.o test.c

B.arm-linux-gcc -S -o test.o test.c

C.arm-linux-gcc -o test test.c

D.arm-linux-gcc -g -o test test.c


正确答案:D

第4题:

在linux系统中,删除/test/test1目录,当/test目录为空时,希望一并删除,以下命令中正确的是()。

  • A、rmdir -r /test/test1
  • B、rmdir -p /test/test1
  • C、rmdir -R /test/test1
  • D、rmdir -l /test/test1

正确答案:B

第5题:

在linux系统中,用命令rmdir删除/test/test1目录,当/test目录为空时,希望一并删除,以下要用到的参数是()。

  • A、r
  • B、R
  • C、p
  • D、f

正确答案:C

第6题:

在linux系统中,建立目录/test/dir目录并设定dir权限为754,以下命令正确的是()。

  • A、mkdir -m 754 /test/dir
  • B、mkdir -p 754 /test/dir
  • C、mkdir -v 754 /test/dir
  • D、mkdir -d 754 /test/dir

正确答案:A

第7题:

在linux系统中,当前路径为/tmp/test,将/tmp/test/oldfile更改为/tmp/test/newfile,以下命令错误的是()。

  • A、mv /tmp/test/oldfile newfile
  • B、mv /tmp/test/oldfile /tmp/test/newfile
  • C、mv oldfile /tmp/test/
  • D、mv oldfile newfile

正确答案:C

第8题:

用户通过命令行与Linux系统进行交互,完成各种配置及管理等功能。根据下表要求写出完整的Linux命令。

序号

命令要求

完整命令

1

测试与www.baidu.com的互通性

2

改变当期目录到/home/zhang

3

将文件test改名为test.org

4

在文件test.c中查找字符串passwd


正确答案:
(1)pingwww.baidu.com
(2)cd/home/zhang/
(3)mvtesttest.org
(4)grep‘passwd’test.c

第9题:

在linux系统中,当前路径为/tmp/test,将/tmp/test/oldfile更改为/tmp/test/newfile,以下命令正确的是()。

  • A、mv /tmp/test/oldfile newfile
  • B、mv /tmp/test/oldfile /tmp/test/newfile
  • C、mv oldfile newfile
  • D、mv oldfile /tmp/test/newfile
  • E、mv oldfile /tmp/test/

正确答案:A,B,C,D

第10题:

在linux系统中,用cp命令将/tmp/test中的文件到/tmp/test1中,不想拷贝目录本身,以下命令正确的是()。

  • A、cp -R /tmp/test /tmp/test1
  • B、cp -r /tmp/test /tmp/test1
  • C、cp -R /tmp/test/. /tmp/test1
  • D、cp /tmp/test /tmp/test1

正确答案:C

更多相关问题