본문으로 바로가기

[Linux/All] 리눅스에서 파일 찾는 명령어

category OS/Ubuntu 2017. 8. 3. 13:52

파일 이름으로 찾기

find / -name 파일명 -type f

 

폴더 이름으로 찾기

fine / -name 폴더명 -type d

 

find와 grep을 함께사용하고 싶은경우

find . -name "*" | xargs grep -n "찾고자 하는 문자열"