리눅스
find 명령어
UGO
2021. 4. 30. 15:30
1. 현재 디렉토리에서 특정 단어가 들어간 모든 파일 찾기
find . -type f | xargs grep "Error updating subscription relationship" 2>/dev/null
2. 원하는 파일 찾기
find / -name "찾을파일명" 2>/dev/null
Permission denied 에러가 안나오게 하려면 명령어 뒤에 꼭 2>/dev/null 을 붙여야 한다.