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

练习题库2022-08-02  26

问题 在Linux中,可以使用命令(  )来给test文件赋予执行权限。A.[root@root]#chmod -x testB.[root@root]#chmod +x testC.[root@root]#chmod -w testD.[root@root]#chmod +w 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

答案 B

解析 chmod命令格式:
chmod   [who] operator [permission]  目录或文件
who的含义是:u 文件属主权限 g 同组用户权限 o 其它用户权限  a 所有用户(包括以上三种)
operator的含义:+ 增加权限     - 取消权限       = 唯一设定权限
permission的含义:r 读权限   w 写权限     x 执行权限
此题中要给test对象赋予执行权限可以用到chmod结合a=x或a+x或则直接+x,再介绍test文件参数就可以了。
转载请注明原文地址:https://tihaiku.com/congyezige/2431965.html

最新回复(0)