개발관련/OS

[Linux] 파일 찾기 find 명령어 정리

90만식 2022. 8. 25. 11:02
728x90

find 명령어 정리

#find
#find {경로} -name {파일명 or 디렉토리 명} {type}

# 예제
# /project/deploy/test 에서 test라는 파일 또는 디렉토리를 검색한다
find /project/deploy/test -name test

# 타입 추가 예제
# /project/deploy/test 에서 test라는 디렉토리를 검색한다
find /project/deploy/test -name test d

# /project/deploy/test 에서 test라는 파일을 검색한다.
find /project/deploy/test -name test f
728x90