[英]Chown command usage in perl script
我在Perl脚本的下面一行中找不到有关-1使用的任何信息。
chown -1, $group, $directory
perldoc -f chown
: perldoc -f chown
:
chown LIST
链表
Changes the owner (and group) of a list of files.
更改文件列表的所有者(和组)。 The first two elements of the list must be the numeric uid and gid, in that order.
列表的前两个元素必须是按顺序排列的数字uid和gid。 A value of -1 in either position is interpreted by most systems to leave that value unchanged .
大多数系统都将任一位置的-1值解释为保持该值不变 。 Returns the number of files successfully changed.
返回成功更改的文件数。
my $cnt = chown $uid, $gid, 'foo', 'bar'; chown $uid, $gid, @filenames;
...
...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.