单选题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 availabl

题目
单选题
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.


相似考题
更多“Files /tmp/file2 and /tmp/file3 are hard linked to /tmp/file”相关问题
  • 第1题:

    An operator needs to run a script which will write standard output and standard error to different files. Which of the following commands will successfully perform this task?()

    A. myscript.ksh 1>/tmp/log/script.log 2>/tmp/log/script.err

    B. myscript.ksh $1>/tmp/log/script.log $2>/tmp/log/script.err

    C. myscript.ksh 1>/tmp/log/script.log 2>1 /tmp/log/script/err

    D. myscript.ksh 2>1 /tmp/log/script.log 2> /tmp/log/script.err


    参考答案:A

  • 第2题:

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

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

    正确答案:B

  • 第3题:

    在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

    正确答案:D,E

  • 第4题:

    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

  • 第5题:

    An administrator migrates from AIX 5.3 to AIX 6.1. Upon completion, a client questions why files are missing from /tmp. How should the administrator respond to the client?()

    • A、Explain that the files never existed in the first place.
    • B、Explain that during a Migration install the /tmp filesystem is overwritten.
    • C、Explain that after a Migration install, all system filesystems will be empty.
    • D、Explain that /tmp is temporary storage and files are automatically removed every 30 days.

    正确答案:B

  • 第6题:

    Which command will run myscript and redirect stdout and sterr to /tmp/myoutput?()

    • A、./myscript >> /tmp/myoutput
    • B、./myscript 2>&1 /tmp/myoutput
    • C、./myscript > /tmp/myoutput 2>&1
    • D、./myscript > /tmp/myoutput &1>2

    正确答案:C

  • 第7题:

    多选题
    下面哪个语句可以用来测试/tmp目录()。
    A

    ((-d/tmp))

    B

    [-d/tmp]

    C

    test-d/tmp

    D

    {-d/tmp}


    正确答案: B,C
    解析: 暂无解析

  • 第8题:

    多选题
    在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


    正确答案: D,A
    解析: 暂无解析

  • 第9题:

    单选题
    How can permissions be set up on /tmp so that a user cannot delete another user’s files?()
    A

    chmod +s /tmp

    B

    chmod 775 /tmp

    C

    chmod 1777 /tmp

    D

    chmod 4755 /tmp


    正确答案: B
    解析: 暂无解析

  • 第10题:

    单选题
    在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


    正确答案: D
    解析: 暂无解析

  • 第11题:

    单选题
    How can permissions be set up on /tmp so that one user in a group cannot delete another user’s files in that same group()
    A

    chmod +s /tmp

    B

    chmod 755 /tmp

    C

    chmod 1777 /tmp

    D

    chmod 4755 /tmp


    正确答案: B
    解析: 暂无解析

  • 第12题:

    单选题
    Which of the following entries should be added to the syslog.conf file to capture information to troubleshoot a problem reported with e-mail? ()
    A

     smpt.info /tmp/syslog.msgs 

    B

     mail.debug /tmp/syslog.msgs 

    C

     daemon.err /tmp/syslog.msgs

    D

     mail.err /tmp/syslog.msgs 


    正确答案: A
    解析: 暂无解析

  • 第13题:

    命令cat file1 file2 >file3把file1和file2组合成file3。


    正确答案:正确

  • 第14题:

    在linux系统中,在/tmp下创建一个空文件file的命令是()。

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

    正确答案:C

  • 第15题:

    An operator needs to run a script which will write standard output and standard error to different files. Which of the following commands will successfully perform this task?()

    • A、myscript.ksh 1>/tmp/log/script.log 2>/tmp/log/script.err
    • B、myscript.ksh $1>/tmp/log/script.log $2>/tmp/log/script.err
    • C、myscript.ksh 1>/tmp/log/script.log 2>1 /tmp/log/script/err
    • D、myscript.ksh 2>1 /tmp/log/script.log 2> /tmp/log/script.err

    正确答案:A

  • 第16题:

    Which of the following entries should be added to the syslog.conf file to capture information to troubleshoot a problem reported with e-mail? ()

    • A、 smpt.info /tmp/syslog.msgs 
    • B、 mail.debug /tmp/syslog.msgs 
    • C、 daemon.err /tmp/syslog.msgs
    • D、 mail.err /tmp/syslog.msgs 

    正确答案:B

  • 第17题:

    下面哪个语句可以用来测试/tmp目录()。

    • A、((-d/tmp))
    • B、[-d/tmp]
    • C、test-d/tmp
    • D、{-d/tmp}

    正确答案:B,C

  • 第18题:

    在Unix系统中如何将tmp目录改名为当前目录中的temp目录()。

    • A、ln tmp temp
    • B、m tmp temp
    • C、mv tmp temp
    • D、cn tmp temp

    正确答案:C

  • 第19题:

    单选题
    在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


    正确答案: A
    解析: 暂无解析

  • 第20题:

    单选题
    如何删除一个非空子目录/tmp()。
    A

    del/tmp/*

    B

    rm-rf/tmp

    C

    rm-Ra/tmp/*

    D

    rm–rf/tmp/*


    正确答案: D
    解析: 暂无解析

  • 第21题:

    多选题
    在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/


    正确答案: D,E
    解析: 暂无解析

  • 第22题:

    单选题
    linux系统,把当前日期标准输出和标准出错信息重定向到/tmp/date文件中,下面正确的操作是()。
    A

    date>/tmp/date

    B

    date>>/tmp/date

    C

    date2>>/tmp/date

    D

    date&>/tmp/date


    正确答案: D
    解析: 暂无解析

  • 第23题:

    单选题
    Which command will run myscript and redirect stdout and sterr to /tmp/myoutput?()
    A

    ./myscript >> /tmp/myoutput

    B

    ./myscript 2>&1 /tmp/myoutput

    C

    ./myscript > /tmp/myoutput 2>&1

    D

    ./myscript > /tmp/myoutput &1>2


    正确答案: A
    解析: 暂无解析

  • 第24题:

    判断题
    命令cat file1 file2 >file3把file1和file2组合成file3。
    A

    B


    正确答案:
    解析: 暂无解析