トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS

Top / linux / System Command Examples / find examples / find パーミッションで検索
Last-modified: 2018-02-23 (金) 15:16:24 (1931d)

find パーミッションで検索


  • syntax:
    find 検索Path -perm パーミッション
    find 検索Path -対象者=アクセス権

    find ./ -perm 755
    find ./ -perm -u=x
    find ./ -perm -u=w -exec mv {} ./backup \;


  • comment:
    検索Path以下のpermで指定された物を検索する

    permの指定は以下のものが使用可能
    'u'----owner
    'g'----group
    'a'----全対象者

    アクセス権
    'r'----読み込み権限
    'w'----書き込み権限
    'x'----実行権限

    複数の条件指定時
    find ./ -perm -u=r -perm -g=r

  • Example:



    Tag: Linux find

    Goto Top Page

Top / linux / System Command Examples / find examples / find パーミッションで検索