在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系统中,用cp命令将/tmp/test/file文件,复制到/tmp下,并保持原来的名字,以下命令中正确的是()。

  • A、cp -l /tmp/test/file /tmp
  • B、cp -s /tmp/test/file /tmp
  • C、cp -r /tmp/test/file /tmp
  • D、cp /tmp/test/file /tmp
  • E、cp /tmp/test/file /tmp/file
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第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系统中,在/tmp下创建一个空文件file的命令是()。

  • A、mkdir /tmp/file
  • B、make /tmp/file
  • C、touch /tmp/file
  • D、mv /tmp/file

正确答案:C

第3题:

In a test database, you issue the SELECT … INTO OUTFILE statement to create a file with your t1 table data. You then TRUNCATE this table to empty it.()Mysql> SELECT * INTO OUTFILE ‘/tmp/t1.sql‘ from t1;mysql> TRUNCATE t1;

A.$ mysqladmin – u root – p – h localhost test – restore /tmp/t1.sql

B.Mysql> INSERT INTO t1 VALUES FROM ‘/tmp/t1.sql‘

C.$ mysql – u root – p – h localhost test < /tmp/t1.sql

D.Mysql> LOAD DATA INFILE ‘/tmp/t1.sql‘ INTO TABLE t1

E.$ mysqlinport – u root – p – h localhost test /tmp/t1.sql


参考答案:D, E

第4题:

在linux系统中,删除/tmp/test目录及其子目录,并且不用确认,以下正确的命令是()。

  • A、rm -rf /tmp/test
  • B、rmdir /tmp/test
  • C、rm -r /tmp/test
  • D、rm -r -f /tmp/test
  • E、rm -f /tmp/test

正确答案:A,D

第5题:

在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

第6题:

linux系统中,在/tmp存在一文件file,想更新文件的时间目录为当前的时间的命令是()。

  • A、mkdir /tmp/file
  • B、touch /tmp/file
  • C、mv /tmp/file
  • D、rm /tmp/file

正确答案:B

第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题:

Files /tmp/file2 and /tmp/file3 are hard linked to /tmp/file1.What will the result be if a user makes changes to /tmp/file2 at the same time another user tries to delete /tmp/file1?()

A.All three files will contain the updates and will remain available.

B.All three files will be deleted and no changes will be made to /tmp/file2.

C.Only /tmp/file2 will contain the updates, but /tmp/file3 will remain available.

D.Both /tmp/file2 and /tmp/file3 will contain the updates and will remain available.


参考答案:D

第9题:

在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

第10题:

在linux系统中,将文件/tmp/test1和/tmp/test2压缩到/tmp/test.gz,正确的命令是()。

  • A、tar -czvf test1 test2 test.gz
  • B、tar -czvf test.gz test1 test2
  • C、tar test.gz test1 test2
  • D、tar test1 test2 test.gz

正确答案:B

更多相关问题