+ -
当前位置:首页 → 问答吧 → chmod =x file 为什么文件的属性变成了--x--x--x了呢

chmod =x file 为什么文件的属性变成了--x--x--x了呢

时间:2011-03-22

来源:互联网

好像没有这种用法啊

作者: lint2006   发布时间: 2011-03-22

Operator         Description
+         adds the specified modes to the specified classes
-         removes the specified modes from the specified classes
=         the modes specified are to be made the exact modes for the specified classes

作者: xiaopan3322   发布时间: 2011-03-22

你这里的“=x”就默认了把"u" "g" 和 "o"的属性都改了。。。
它等同于:
chmod u=x,g=x,o=x file
或者
chmod ugo=x file

作者: xiaopan3322   发布时间: 2011-03-22

回复 xiaopan3322


    丢人了

作者: lint2006   发布时间: 2011-03-22

热门下载

更多