Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ディレクトリで(再帰的に)書き込み可能なファイルを見つけたい。私のオペレーティングシステムはMacOSです。
私は試した:
find . -type -writable
しかし、シェルはエラーを返します:
検索: -タイプ: -書き込み可能: 不明なタイプ
エラーが発生したのはなぜですか? 代替手段はありますか?
誰が書き込み可能ですか?
誰でも書き込み可能であることを意味する場合は、次を使用できます。
find . -type f -perm -0222
また
find . -type f -perm -ugo=w
によって書き込み可能であることを意味する場合は、次otherを使用します。
other
find . -type f -perm -0002
find . -type f -perm -o=w