리눅스 n일 이내에 수정된 파일 찾기
페이지 정보
작성자 서방님 댓글 0건 조회 173회 작성일 19-04-12 19:27본문
수정일이 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
댓글목록
등록된 댓글이 없습니다.