/
find 명령어 사용시 permission denied 에러 출력하지 않기
find 명령어 사용시 permission denied 에러 출력하지 않기
일반 사용자로 find 명령어를 사용할 경우 권한이 없는 폴더(/proc) 때문에 권한없음 오류가 화면을 채워서 find 결과를 보기 힘들수 있습니다.
이럴 때 표준 에러(stderr) 을 화면으로 출력하지 말고 null device 로 출력하도록 redirection 해주면 됩니다.
find / -name \*.java -exec -print 2> /dev/null
같이 보기
Ref
, multiple selections available,
Related content
여러 조건으로 파일을 찾는 Linux find 명령어 사용법
여러 조건으로 파일을 찾는 Linux find 명령어 사용법
More like this
chmod, setfacl 실행시 "Operation not permitted" 에러 발생
chmod, setfacl 실행시 "Operation not permitted" 에러 발생
More like this
폴더와 파일에 적절한 권한 부여
폴더와 파일에 적절한 권한 부여
More like this
linux chmod 사용법
linux chmod 사용법
More like this
파일 시스템과 마운트 정보를 보여주는 findmnt 명령어
파일 시스템과 마운트 정보를 보여주는 findmnt 명령어
More like this
RHEL/CentOS sudo 명령어 가능하게 하기
RHEL/CentOS sudo 명령어 가능하게 하기
More like this