chmod 폴더 or 파일만 권한을 주고 싶을때 find 명령어를 쓰면 된다.(파일 = f , 디렉토리 = d) 파일만 #find ./ -type f -exec chmod 777 -R * {} \; 폴더만 #find ./ -type d -exec chmod 777 -R * {} \; chattr 도 동일하다. 파일만 #find ./ -type f -exec chattr +a {} \; 폴더만 #find ./ -type d -exec chattr +a {} \; 예) #find ./ -type d -exec chattr -R +a {} \; 모든 디렉토리 및 이하 파일적용 적용됐는지 확인lsattr find: missing argument to `-exec' 에러가 뜰경우 {} \ 한칸을 안띄어 줘서 에러..