需要设置某个文件test属于root用户,abc组,如下命令那个正确?
A: chmod u+x test
B: chown abc:root test
C: chmod root:abc test
D: chmod test:root abc
A: chmod u+x test
B: chown abc:root test
C: chmod root:abc test
D: chmod test:root abc
C
举一反三
- 需要设置某个文件test属于root用户,abc组,如下命令那个正确? A: chmod u+x test B: chown abc:root test C: chmod root:abc test D: chmod test:root abc
- 连接MySQL服务器的指令是?() A: mysqladmin -u root password test B: mysql -u root password test C: mysql -u root -p test D: mysql -u root -password test
- ●在Linux中,可以使用命令()来给test文件赋予执行权限。 A: [root@root]#chmod -X test B: [root@root]#chmod +x test C: [root@root]#chmod -W test D: [root@root]#chmod +w test
- Linux系统中,指定文件file1为所有用户可读,可写,可执行,执行命令:___1__。修改file1的拥有者为test,拥有组为user,执行命令:___2__。 A: chmod 776,chown test:use B: chmod 777,chown user:test C: chmod 778,chown user:test D: chmod 777,chown test:use
- 如何在vi的环境中将样例文件的root在当前行中都替换为test? A: :1,2s/root/test/g B: :s/root/test C: :s/root/test/g D: :s/root/test/g
内容
- 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: 普通文件