chgrp 简明笔记
生活随笔
收集整理的這篇文章主要介紹了
chgrp 简明笔记
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
改變與文件相關聯(lián)的組
chgrp [options]?group file-list
?
參數(shù)
group?為新組的名稱或者數(shù)值ID,file-list?為要改變其相關聯(lián)組的文件路徑名列表
?
選項
-c???????????? 顯示更改過程信息
-f????????????? 強制更改
-R???????????? 遞歸更改目錄
-v????????????? 顯示更改過后的信息
?
示例
chgrp
Darling work # ls -l 總用量 0 -rw-r--r-- 1 siu siu 0 1月 10 15:08 temp Darling work # chgrp jack temp Darling work # ls -l 總用量 0 -rw-r--r-- 1 siu jack 0 1月 10 15:08 temp更改普通文件temp的群組
?
chgrp -Rv
Darling work # ls -l 總用量 4 drwxr-xr-x 2 siu siu 4096 1月 10 15:13 dir Darling work # chgrp -Rv jack dir changed group of "dir" from siu to jack Darling work # ls -l 總用量 4 drwxr-xr-x 2 siu jack 4096 1月 10 15:13 dir遞歸更改目錄的群組,并顯示更改信息
?
Tips
更改群組需要root權限
轉載于:https://www.cnblogs.com/luoahong/p/6188674.html
總結
以上是生活随笔為你收集整理的chgrp 简明笔记的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: struts2值栈内部数据结构详解
- 下一篇: cookie封装调用