• 2022-07-28
    ‌需要设置某个文件test属于root用户,abc组,如下命令那个正确?‏
    A: chmod u+x test
    B: chown abc:root test
    C: chmod root:abc test
    D: chmod test:root abc
  • C

    内容

    • 0

      文件test的访问权限为rw-r--r--,要增加所有用户的执行权限和同组用户的写权限,以下哪个命令正确? A: chmod 765 test B: chmod o+x test C: chmod g+w test D: chmod a+x,g+w test

    • 1

      将当前目录下的test文件夹复制到/root目录下,并改名为dir() A: cp test /root/di B: cp -r test /root C: cp -p test /root/di D: cp -r test /root/di

    • 2

      要修改文件test的权限,使其文件所有者拥有读、写和执行权限,所属组和其他人拥有读和执行权限,下列命令正确的是( )。 A: chmod 755 test B: chmod 644 test C: chmod 575 test D: chmod 557 test

    • 3

      #print("Test")print("abc") #print("xyz")程序输出 A: Test<br/>abc xyz B: Test <br/>abc <br/>xyz C: abc D: abc xyz

    • 4

      用命令ls -al显示出文件test的描述如下所示,由此可知文件test的类型为( )。drwxr-xr-- 1 root root 2 Cec 11 14:12 test A: 硬链接 B: 目录 C: 符号链接 D: 普通文件