如何變更所有檔案目錄屬性的語法 - Linux

By Poppy
at 2009-07-17T13:05
at 2009-07-17T13:05
Table of Contents
※ 引述《WRlTERT1NA (小妹( ̄⊿ ̄"盛夏之年)》之銘言:
: 剛好最近有遇到這樣的需求...做個Memo
: 將所有目錄改為 755
: # find /data/www -type d -exec chmod 755 {} \;
: 為何打了會出現 -exec not found? help thx
我個人不喜歡用 -exec, 比較喜歡用 xargs
所以我的做法如下:
# find /data/www -type -d | xargs chmod 755
--
: 剛好最近有遇到這樣的需求...做個Memo
: 將所有目錄改為 755
: # find /data/www -type d -exec chmod 755 {} \;
: 為何打了會出現 -exec not found? help thx
我個人不喜歡用 -exec, 比較喜歡用 xargs
所以我的做法如下:
# find /data/www -type -d | xargs chmod 755
--
Tags:
Linux
All Comments
Related Posts
如何變更所有檔案目錄屬性的語法

By Delia
at 2009-07-17T12:07
at 2009-07-17T12:07
自由軟體法律授權分析-南台灣探索之旅

By Megan
at 2009-07-17T10:36
at 2009-07-17T10:36
初學者問題..顯卡與kernel

By Charlie
at 2009-07-17T00:26
at 2009-07-17T00:26
請問如何得知自己安裝了哪些套件? debian

By Emma
at 2009-07-17T00:15
at 2009-07-17T00:15
ubuntu更改登入照片

By Jessica
at 2009-07-16T23:13
at 2009-07-16T23:13