更多“Linux中,为文件test.txt添加一个"其他用户可执行"权限时,使用()。A、chmod u+xtest.txtB、chmod a+xtest.txtC、chmod g+xtest.txtD、chmod o+xtest.txt”相关问题
  • 第1题:

    在Linux中,要求将文件mm.txt的所有使用者的文件执行权限删除。则下面所示命令中,哪一个是错的。()

    A. chmod a-x mm.txt

    B. chmod o-x mm.txt

    C. chmod -x mm.txt

    D. chmod ugo-x mm.txt


    参考答案B

  • 第2题:

    下列命令中可以将文件file的权限设置为可执行的是()。

    A.chmod777file

    B.chmod+xfile

    C.chownrootfile

    D.chownexefile


    参考答案:A, B

  • 第3题:

    ●在Linux中,可以使用命令(63)来给test文件赋予执行权限。

    (63)

    A. [root@root]#chmod -x test

    B. [root@root]#chmod +x test

    C. [root@root]#chmod -w test

    D. [root@root]#chmod +w test


    正确答案:B

  • 第4题:

    在Linux中可以使用命令( )针对文件newfiles.txt为所有用户添加执行权限。

    A.chmod-x newfiles.txt
    B.chmod+x newfiles.txt
    C.chmod-w newfiles.txt
    D.chmod+w newfiles.txt

    答案:B
    解析:
    Mode:权限设定字串,格式为[ugoa...][[+-=][rwxX]...][,...],其中u表示该文档的拥有者,g表示与该文档的拥有者同一个组(group)者,o表示其他的人,a表示所有的用户。如图17-1-1所示,“+”表示增加权限、“-”表示取消权限、“=”表示直接设定权限。“r”表示可读取,“w”表示可写入,“x”表示可执行,“x”表示只有当该文档是个子目录或者已经被设定为可执行。此外,chmod也可以用数字来表示权限。

  • 第5题:

    下面()命令可以改变test目录中所有文件的权限。

    • A、$chmod–a755 test
    • B、$chmod–R755 test
    • C、$chmod–X755 test
    • D、chmod–o755test

    正确答案:B

  • 第6题:

    在linux中,文件exer1的访问权限为rw-r--r--,现要增加所有用户的执行权限和同组用户的写权限,下列命令正确的是()

    • A、chmod?a+x,?g+w?exer1
    • B、chmod?775?exer1
    • C、chmod?765exer1
    • D、chmod?g?w?exer1

    正确答案:A,B

  • 第7题:

    下列命令中可以将文件file的权限设置为可执行的是()。

    • A、chmod777file
    • B、chmod+xfile
    • C、chownrootfile
    • D、chownexefile

    正确答案:A,B

  • 第8题:

    如何给test这个文件加上可执行权限()

    • A、chmod +x test
    • B、chmod -x test
    • C、chmod 400 test
    • D、chmod 600 test

    正确答案:A

  • 第9题:

    Solaris中,将文件aaa赋予属主全权,而赋予其他人可执行权的命令为

    • A、chmod 111 aaa
    • B、chmod 777 aaa
    • C、chmod 117 aaa
    • D、chmod 711 aaa

    正确答案:D

  • 第10题:

    如何给test这个文件加上可执行权限()。

    • A、chmod+xtest
    • B、chmod-xtest
    • C、chmod400test
    • D、chmod600test

    正确答案:A

  • 第11题:

    要给文件file1加上其他人可执行属性的命令是()

    • A、chmod a+x
    • B、chown a+x
    • C、chmod o+x
    • D、chown o+x

    正确答案:C

  • 第12题:

    在Linux中,要求将文件mm.txt的所有使用者的文件执行权限删除。则下面所示命令中,哪一个是错的。()

    • A、chmod a-x mm.txt
    • B、chmod o-x mm.txt
    • C、chmod -x mm.txt
    • D、chmod ugo-x mm.txt

    正确答案:B

  • 第13题:

    为了修改文件test的许可模式,使其文件属主具有读、写和运行的权限,组和其他用户可以读和运行,可以采用的方法( )。

    A、chmod 755 test

    B、chmod 700 test

    C、chmod ux+rwx test

    D、chmod g-w test


    参考答案:A

  • 第14题:

    在RedHat Linux 5 操作系统中,可采取哪条命令增加文件install.sh的可执行权限()

    A. chmod +x install.sh

    B. chmod -x install.sh

    C. chown +x install.sh

    D. chown -x install.sh


    参考答案:A

  • 第15题:

    Linux系统在默认情况下将创建的普通文件的权限设置为( ),若要将/test文件的权限设置为所有用户都具有读写执行的权限,则正确的命令是(请作答此空)。

    A.chmod-rw-r--r--/test
    B.chmod test-r--r--r--
    C.chmod-777/test
    D.chmod-111/test

    答案:C
    解析:
    普通文件是不可执行的,自然不会有x权限。此外,文件拥有人缺省是具备读写权限的,而其他人只具备读权限。

  • 第16题:

    在linux系统中,对一个重要文件test,可以实现所有用户都有读和执行权限的命令是()。

    • A、chmod a+rx test
    • B、chmod a+wx test
    • C、chmod o+rx test
    • D、chmod u+rx test

    正确答案:A

  • 第17题:

    Linux系统中,chmod命令可以修改文件的访问权限比特位。


    正确答案:正确

  • 第18题:

    在UNIX中,可用ls命令察看文件属性,一个文件file1的属性为“RW_R_ _ R _ _”,如果对文件赋予本用户读写执行权限,组内用户和其它用户读写权限,则使用()命令。

    • A、chmod g+rw,o+r file1
    • B、chmod 755 file1
    • C、chmod g+rwx file1
    • D、chmod 775 file1

    正确答案:B

  • 第19题:

    Unix下修改文件权限,只有所有者才能修改、执行该文件()。

    • A、chmod 700 filename
    • B、chmod 070 filename
    • C、chmod 755 filename
    • D、chmod 022 filename

    正确答案:A

  • 第20题:

    Solaris操作系统下,()命令可以修改/n2kuser/.profile文件的属性为:所有用户可读、可写、可执行

    • A、chmod 777 /n2kuser/.profile
    • B、chmod 000 /n2kuser/.profile
    • C、chmod 111 /n2kuser/.profile
    • D、chmod 222 /n2kuser/.profile

    正确答案:A

  • 第21题:

    要想使任何人对文件commfile拥有“可读、可写、可执行”的全部权利,可通过()命令实现。()

    • A、chmod ugo+rwx commfile
    • B、chmod 751 commfile
    • C、chmod ugo-rwx commfile
    • D、chmod 777 commfile

    正确答案:A,C

  • 第22题:

    在RedHat Linux 5 操作系统中,可采取哪条命令增加文件install.sh的可执行权限()

    • A、chmod +x install.sh
    • B、chmod -x install.sh   
    • C、chown +x install.sh
    • D、chown -x install.sh

    正确答案:A

  • 第23题:

    Solaris操作系统下,下面哪个命令可以修改/n2kuser/.profile文件的属性为所有用户可读、科协、可执行?()

    • A、chmod744/n2kuser/.profile
    • B、chmod755/n2kuser/.profile
    • C、chmod766/n2kuser/.profile
    • D、chmod777/n2kuser/.profile

    正确答案:D