首页 > 试题广场 >

The chmod command (命令)

[单选题]

The chmod command (命令) is used to change the permission (许可) of file in Linux. To use it, you specify the desired permission setting and the file or files that you wish to modify. The permission settings are usually a series of bits. Which of the following bits present that the file’s owner may read, write, and execute the file, while all others may only read the file? .

  • 755
  • 744
  • 644
  • 611

chmod 命令,改写文件的读写许可设置

语法为: chmod abc file

其中 a,b,c 各为一个数字,分别表示 User, Group, Other 的权限

r = 4, w = 2, x = 1

所以,

a = 4+2+1 = 7

b = 4

c = 4

发表于 2017-05-17 01:14:35 回复(0)

chmod命令


r4w2x1


三个数字:第一个数字user第二个数字group第三个数字others


要使user权限为rwx,第一个数字设置为4+2+1=7

发表于 2019-08-09 16:26:01 回复(0)