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

Top / linux / System Command Examples / find examples / find ファイルの容量を指定して検索
Last-modified: 2018-02-23 (金) 14:51:45 (2048d)

find ファイルの容量を指定して検索


  • syntax:
    find 検索Path -size ファイル容量

    find ./ -size -500k
    find ./ -size +500k -exec mv {} ./backup \;


  • comment:
    検索Path以下の指定されたFileサイズ以下、以上の物を検索します

    " - "は以下のを示します、" + "は以上を示します。

    サイズ指定は以下の単位を使用可能
    'b'----for 512-byte blocks (default)
    'c'----for bytes
    'w'----for two-byte words
    'k'----for Kilobytes (units of 1024 bytes)
    'M'----for Megabytes (units of 1048576 bytes)
    'G'----for Gigabytes (units of 1073741824 bytes)

  • Example:



    Tag: Linux find

    Goto Top Page

Top / linux / System Command Examples / find examples / find ファイルの容量を指定して検索