top of page

find 명령

find ./ -type l -print (여기서 l이 d면 dir을 찾고)

find ./ -atime -1 하루전날 발생한 거 찾기 -atime +n : n일동안 access가 일어나지 않은 파일 -n : n일동안 access가 일어난 파일 -mtime +n : n일동안 modify가 일어나지 않은 파일 -mtime -n : n일동안 modify가 일어난 파일

만약 10이상된 file을 지운다면.

find $APPLCSF/$APPLLOG -name ’*.req’ -user applmgr -mtime +10 -exec rm -f {} ;

find $APPLCSF/$APPLOUT -name ‘*’ -user applmgr -mtime +10 -exec rm -f {} ;

조회수 0회댓글 0개

Comments


bottom of page