?? ??

??? chgrp ?? ???

??: chgrp ??? ???? ????? ?? ??? ???? ? ?????.

??: ??chgrp [-cfhRv][--help][--version][group][?? ?? ????...] ?? chgrp [-cfhRv][--help][--reference= < ?? ?? ?? ????>][--version][?? ?? ????...]

??? chgrp ?? ?

?? 1: ??? ?? ?? ??:

chgrp -v bin log2012.log

??:

[root@localhost test]# ll---xrw-r-- 1 root root 302108 11-13 06:03 log2012.log[root@localhost test]# chgrp -v bin log2012.log

"log2012.log"? ?? ??? bin

[root@localhost test]# ll---xrw-r-- 1 root bin  302108 11-13 06:03 log2012.log

? ???????. ??: ?? ???? log2012.log ??? ?????. bin ????

? 2: ??? ??? ???? ??? ?? ?? ??

chgrp --reference=log2012.log log2013.log

??:

[root@localhost test]# ll---xrw-r-- 1 root bin  302108 11-13 06:03 log2012.log-rw-r--r-- 1 root root     61 11-13 06:03 log2013.log[root@localhost test]#  chgrp --reference=log2012.log log2013.log 
[root@localhost test]# ll---xrw-r-- 1 root bin  302108 11-13 06:03 log2012.log-rw-r--r-- 1 root bin      61 11-13 06:03 log2013.log