리눅스 n일 이내에 수정된 파일 찾기 > server

본문 바로가기

server

리눅스 n일 이내에 수정된 파일 찾기

작성일 19-04-12 19:27

페이지 정보

작성자서방님 조회 174회 댓글 0건

본문

수정일이 n일 이내인 파일 찾기

find 폴더 -type f -mtime -일수 -print

find 폴더 -type f -mtime -일수 -ls


[root@localhost]# find /var/log/httpd/ -type f -mtime -7 -print
/var/log/httpd/error_log-20190412
/var/log/httpd/error_log
[root@localhost]# find /var/log/httpd/ -type f -mtime -7 -ls
271564    8 -rw-r--r--   1 root     root         6321 Dec 29 12:31 /var/log/httpd/error_log-20190412
271565    8 -rw-r--r--   1 root     root         4245 Jan  2 19:53 /var/log/httpd/error_log

댓글목록

등록된 댓글이 없습니다.

게시물 검색
Copyright © 서방님.kr All rights reserved.
PC 버전으로 보기