Table of Contents

find

setuid 비트 설정 파일 찾기

find . -perm -4000 -exec ls -al {} \;

setuid, setgid 두개의 비트가 설정된 파일 찾기

find . -perm -6000 -exec ls -al {} \;

setuid or setgid

find . -perm -4000 -o -perm -2000 -exec ls -al {} \;

오늘부터 과거 10일 이내에 수정된 파일 찾기

find /etc -mtime -10 -print

확장자가 cpp이고, string 이란 문자열이 포함된 파일 검색

find / -name "*.cpp" -print -exec grep string {}\;