コマンドメモ

find ...dir option...

  • name pattern
  • regex pattern
  • type d
  • type f
  • mtime N :ファイルの最終更新日時がN日前
  • mtime -N:ファイルの最終更新日時がNにちよりも新しい
  • or:前後の条件のどちらかにマッチ
  • print0:null文字区切りで出力(xargs -0と併用)
  • exec command;

xargs -0 command;



lsof -p pid
lsof filename
fuser filename


strace command
strace -p pid