OS_Linux&Unix
[Unix/Linux] find 명령어
최선을 다하자!
2022. 9. 7. 15:18
[Find]
1) find / -atime +n: n일동안 access가 일어나지 않은 file
find / -atime -n: n일동안 access가 일어난 file
ex) $ find / -atime +3
ex) $ find / -atime -3
2) find / -mtime +n: n일동안 modify가 일어나지 않은 file
find / -mtime -n: n일동안 modify가 일어난 file
3) find / -size +size크기c : file size가 size크기 이상인 file
find / -size -size크기c : file size가 size크기 이하인 file
ex)$ find / -size +1000c
4) find / -user root: 소유자가 root인 file을 찾아라!
5) finf / -name .profile: 파일의 이름이 .profile을 찾아라!
6) find / -type d: directory를 찾아라.
f: regular file
b: block device file
c: character device file
매우 명쾌하여 긁어왔습니다...!
출처 : 와스고수
https://blog.naver.com/kletgdgo
반갑습니다. 와스(WAS) 고수입니다. : 네이버 블로그
와스고수(wasgosu) 입니다. 13년차 미들웨어 관련 전문 블로그입니다. 기술 나눔이 목적이랍니다 ORACLE 와스고수
blog.naver.com