Linux - find 파일 찾기 명령어

1. 특정용량 이상되는 파일 찾기 (ex : 100 Mb)
find /* -size +100000k -exec ls -l {} \;

2. 특정 퍼미션 파일 찾기 (ex : 4755)

find /* -perm 4755 -exec la -l {} \;


3. 지정된 일자 이후에 변경된 모든 파일 찾기 (서버 보안점검시 사용, ex : 2일)

find /* -used 2 -exec ls -l {} \;

4. 특정디렉토리내에 존재하는 모든 디렉토리 목록만 확인하기
find /* -type d -print

5. PC내에 존재하는 모든 링크파일 검사하기(서버 보안점검시 사용)

find /* -type l -exec ls -l {} \;


6. 특정 문자열로 된 파일 찾기

find /* -name "*.php" -print | xargs egrep -rnoI "sms" | more

+ Recent posts